Skip to content
Permalink
Browse files

fix(core): only add stderr to exception if stderr exists

  • Loading branch information
malept committed Aug 21, 2019
1 parent 4d1f83b commit b6cbc3788d3374c5b06f7d4319c42b4a30fe5b72
Showing with 1 addition and 1 deletion.
  1. +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

Please sign in to comment.
You can’t perform that action at this time.