chore: improve error log when failed to evaluate project selectors

This commit is contained in:
Cheng Liu 2024-10-23 10:43:38 -07:00
parent eb13bd438a
commit 9025c44a4e
No known key found for this signature in database
GPG key ID: BDD2FDCF5AC296BA

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