Skip to content

Commit 3d0f2ac

Browse files
committed
More PR review
1 parent c72ab0e commit 3d0f2ac

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function recompileFromSource(): void {
6363
});
6464
if (spawn.status !== 0) {
6565
console.log('Failed to configure gyp');
66-
console.log(clean(spawn.stderr));
66+
if (spawn.stderr) console.log(clean(spawn.stderr));
6767
return;
6868
}
6969
spawn = spawnSync('node-gyp', ['build'], {
@@ -74,7 +74,7 @@ function recompileFromSource(): void {
7474
});
7575
if (spawn.status !== 0) {
7676
console.log('Failed to build bindings');
77-
console.log(clean(spawn.stderr));
77+
if (spawn.stderr) console.log(clean(spawn.stderr));
7878
return;
7979
}
8080

@@ -245,7 +245,7 @@ function getNativeModule(): Native {
245245
try {
246246
return require('../build/Release/stack-trace.node');
247247
} catch (e) {
248-
console.warn('The \'@sentry-internal/node-native-stacktrace\' binary could not be found. Use \'@electron/rebuild\' to ensure the native module is built for Electron.');
248+
console.warn('The \'@sentry/node-native-stacktrace\' binary could not be found. Use \'@electron/rebuild\' to ensure the native module is built for Electron.');
249249
throw e;
250250
}
251251
}

0 commit comments

Comments
 (0)