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:
Cheng Liu 2024-03-01 11:59:39 -08:00 committed by GitHub
commit 7d6ac10308
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 0 deletions

View file

@ -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);

View file

@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "sparo",
"comment": "Improve error logs when get projects from selection failed",
"type": "none"
}
],
"packageName": "sparo"
}