Merge pull request #212445 from microsoft/ulugbekna/very-walrus

fix runCommands safeStringify failing for large objects
This commit is contained in:
Ulugbek Abdullaev 2024-05-10 16:55:49 +02:00 committed by GitHub
commit dc7a2cd4d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -102,9 +102,9 @@ class RunCommands extends Action2 {
logService.debug(`runCommands: executing ${i}-th command: ${safeStringify(cmd)}`);
const r = await this._runCommand(commandService, cmd);
await this._runCommand(commandService, cmd);
logService.debug(`runCommands: executed ${i}-th command with return value: ${safeStringify(r)}`);
logService.debug(`runCommands: executed ${i}-th command`);
}
} catch (err) {
logService.debug(`runCommands: executing ${i}-th command resulted in an error: ${err instanceof Error ? err.message : safeStringify(err)}`);