Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
fix(loader): resolves "callback already called" exception SHELL-1614
Browse files Browse the repository at this point in the history
Resolves "callback already called" errors when there is an uncaught exception on startup.
  • Loading branch information
KalleV committed Sep 20, 2018
1 parent 0fa375a commit 0c8a48e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/cli/loader-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ exports.init = async function init(done) {

done();
} catch (error) {
done(error);
// TODO: workaround for async/await incompatibility with callbacks in the Flatiron CLI library
console.error(error);
}
};

Expand Down

0 comments on commit 0c8a48e

Please sign in to comment.