Skip to content

Commit d288b09

Browse files
Fix misnamed variable in rebuild command (#155)
Co-authored-by: DeeDeeG <[email protected]>
1 parent 79a60ea commit d288b09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rebuild.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ All the modules will be rebuilt if no module names are specified.\
5252
return new Promise((resolve, reject) =>
5353
void this.fork(this.atomNpmPath, rebuildArgs, {env}, (code, stderr) => {
5454
if (code !== 0) {
55-
reject(stderr ?? '');
55+
reject(stderr ?? `Unknown error while invoking npm: code ${code}`);
5656
return;
5757
}
5858

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

0 commit comments

Comments
 (0)