mirror of
https://github.com/tiktok/sparo.git
synced 2024-11-14 19:35:12 -05:00
Merge pull request #32 from tiktok/feat-improve-checkout-error-log
feat: improve error logs when running rush list failed
This commit is contained in:
commit
7d6ac10308
2 changed files with 14 additions and 0 deletions
|
@ -416,6 +416,10 @@ ${availableProfiles.join(',')}
|
|||
stdio: ['pipe', 'pipe', 'pipe']
|
||||
});
|
||||
|
||||
if (result.status !== 0) {
|
||||
throw new Error(`Get projects from selections failed: ${result.stderr}`);
|
||||
}
|
||||
|
||||
const processedResult: string = this._processListResult(result.stdout.toString());
|
||||
|
||||
terminal.writeVerboseLine(processedResult);
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"changes": [
|
||||
{
|
||||
"packageName": "sparo",
|
||||
"comment": "Improve error logs when get projects from selection failed",
|
||||
"type": "none"
|
||||
}
|
||||
],
|
||||
"packageName": "sparo"
|
||||
}
|
Loading…
Reference in a new issue