You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey guys, how to forward my mistake to ERROR? throw new Error('some error');
but i need to get false in result
(async function () {
try {
let staticD = tmp.leads.leadID,
getBoolean = compare(staticD, myStr);
if (getBoolean ===false) {
console.log("kfs " + getBoolean);
throw new Error('some error');
}else {
console.log(`${'etalon'}`);
}
}catch (err){
console.log(err);
}
}) ()
The text was updated successfully, but these errors were encountered:
IvanNaumenko
changed the title
Error handling doesn't work for throw newError()
Error handling doesn't work for throw newError() in async function
Nov 13, 2017
Hey guys!
Hey guys, how to forward my mistake to ERROR?
throw new Error('some error');
but i need to get false in result
The text was updated successfully, but these errors were encountered: