Skip to content

Commit

Permalink
handle missing buildSystem.log (#259)
Browse files Browse the repository at this point in the history
* handle missing buildSystem.log

* fix
  • Loading branch information
milahu committed Sep 27, 2021
1 parent c2f228b commit 059ad3e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/buildSystem.js
Expand Up @@ -41,6 +41,11 @@ BuildSystem.prototype._ensureInstalled = async function () {
};

BuildSystem.prototype._showError = function (e) {
if (this.log === undefined) {
// handle internal errors (init failed)
console.error("OMG", e.stack);
return;
}
if (this.log.level === "verbose" || this.log.level === "silly") {
this.log.error("OMG", e.stack);
}
Expand Down

0 comments on commit 059ad3e

Please sign in to comment.