Skip to content

Commit

Permalink
fix(AnWeber/vscode-httpyac#338): do not log stack on assertions error
Browse files Browse the repository at this point in the history
  • Loading branch information
AnWeber committed Nov 3, 2024
1 parent c34481c commit 55e0867
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

### Fix
- handle dom parser exception for invalid xml (#821)
- do not log stack on assertions error (AnWeber/vscode-httpyac#338)


## [6.16.3] (2024-10-30)
Expand Down
4 changes: 0 additions & 4 deletions src/utils/requestUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,6 @@ export function requestLoggerFactory(
} else if ([models.TestResultStatus.ERROR, models.TestResultStatus.FAILED].includes(testResult.status)) {
const errorMessage = testResult.error ? ` (${testResult.error?.displayMessage})` : '';
message = chalk`{red ${models.testSymbols.error} ${testResult.message || 'Test failed'}${errorMessage}}`;

if (!options?.useShort && testResult.error?.error.stack) {
message = [message, testResult.error?.error.stack].join('\r\n');
}
}
log(message);
}
Expand Down

0 comments on commit 55e0867

Please sign in to comment.