File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -307,12 +307,7 @@ export default {
307
307
});
308
308
if (state .gracePeriod ) {
309
309
const err = ` You can't deploy on node ${node .nodeId }, its rent contract is in grace period. ` ;
310
- await new Promise ((_ , reject ) => {
311
- setTimeout (() => {
312
- reject (Error (err ));
313
- }, 2000 );
314
- });
315
- console .error (err );
310
+ throw err ;
316
311
}
317
312
}
318
313
} catch (error ) {
Original file line number Diff line number Diff line change @@ -235,12 +235,7 @@ export async function validateRentContract(
235
235
} ) ;
236
236
if ( contractInfo . state . gracePeriod ) {
237
237
const err = `You can't deploy on node ${ node . nodeId } , its rent contract is in grace period.` ;
238
- await new Promise ( ( _ , reject ) => {
239
- setTimeout ( ( ) => {
240
- reject ( Error ( err ) ) ;
241
- } , 2000 ) ;
242
- } ) ;
243
- console . error ( err ) ;
238
+ throw err ;
244
239
}
245
240
}
246
241
You can’t perform that action at this time.
0 commit comments