Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/rebuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ All the modules will be rebuilt if no module names are specified.\
return new Promise((resolve, reject) =>
void this.fork(this.atomNpmPath, rebuildArgs, {env}, (code, stderr) => {
if (code !== 0) {
reject(stderr ?? '');
reject(stderr ?? `Unknown error while invoking npm: code ${code}`);
return;
}

Expand All @@ -72,7 +72,7 @@ All the modules will be rebuilt if no module names are specified.\
this.logSuccess();
} catch (error) {
this.logFailure();
return stderr; //errors as return values atm
return error; // errors as return values atm
}
}
}