Permalink
Browse files
fix(core): only add stderr to exception if stderr exists
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
packages/api/core/src/util/install-dependencies.ts
|
@@ -41,6 +41,6 @@ export default async ( |
|
|
stdio: 'pipe', |
|
|
}); |
|
|
} catch (err) { |
|
|
throw new Error(`Failed to install modules: ${JSON.stringify(deps)}\n\nWith output: ${err.message}\n${err.stderr.toString()}`); |
|
|
throw new Error(`Failed to install modules: ${JSON.stringify(deps)}\n\nWith output: ${err.message}\n${err.stderr ? err.stderr.toString() : ''}`); |
|
|
} |
|
|
}; |
0 comments on commit
b6cbc37