Merge pull request from tiktok/improve-log

Improve log
This commit is contained in:
Cheng Liu 2024-10-23 13:46:46 -07:00 committed by GitHub
commit 90cb8f6008
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 1 deletions
apps/sparo-lib/src/services
common/changes/sparo

View file

@ -421,7 +421,7 @@ export class GitSparseCheckoutService {
});
if (result.status !== 0) {
throw new Error(`Failed to evaluate the Sparo profile's project selectors: ${result.stderr}`);
throw new Error(`Failed to evaluate the Sparo profile's project selectors:\nstdout: ${result.stdout}\nstderr: ${result.stderr}`);
}
const processedResult: string = this._processListResult(result.stdout.toString());

View file

@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "sparo",
"comment": "Improve log when failed to evaluate project selectors",
"type": "none"
}
],
"packageName": "sparo"
}