Pārlūkot izejas kodu

Beningn Failures

master
guest pirms 2 gadiem
vecāks
revīzija
ebfa0b2fc0
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4
    1
      index.js

+ 4
- 1
index.js Parādīt failu

@@ -2799,6 +2799,7 @@ var __acquireConfig = function (selected, owner, clusternodename, configrepo, er
// if(e){
if(Promise.resolve(e) === e) return e;
// console.error(e)
e.benign = true;
throw e; // Not a hard error but we need this for bcontinueonfailure as we still want to stop on firstsuccess.
// }
})
@@ -2869,6 +2870,7 @@ var __acquireData = function (selected, owner, clusternodename, datarepo, errHan
// if(e){
if(Promise.resolve(e) === e) return e;
// console.error(e)
e.benign = true;
throw e; // Not a hard error but we need this for bcontinueonfailure
// }
})
@@ -2890,7 +2892,8 @@ while(parent !== pp){
return hasElxr(p).then((value)=>{
if(value) return p
// PB : TODO -- Using throw like this is not friendly with any...
throw { value : false };
throw Object.assign( new Error('Benign Failure in Batch')
, { value : false, benign : true });
})
}
})(pp)

Notiek ielāde…
Atcelt
Saglabāt