Merge pull request #2425 from github/aeisenberg/truncated-log-msg
Ensure full stack traces are included in log messages
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
## [UNRELEASED]
|
## [UNRELEASED]
|
||||||
|
|
||||||
- Add settings `codeQL.variantAnalysis.defaultResultsFilter` and `codeQL.variantAnalysis.defaultResultsSort` for configuring how variant analysis results are filtered and sorted in the results view. The default is to show all repositories, and to sort by the number of results. [#2392](https://github.com/github/vscode-codeql/pull/2392)
|
- Add settings `codeQL.variantAnalysis.defaultResultsFilter` and `codeQL.variantAnalysis.defaultResultsSort` for configuring how variant analysis results are filtered and sorted in the results view. The default is to show all repositories, and to sort by the number of results. [#2392](https://github.com/github/vscode-codeql/pull/2392)
|
||||||
|
- Fix bug to ensure error messages have complete stack trace in message logs. [#2425](https://github.com/github/vscode-codeql/pull/2425)
|
||||||
- Fix bug where the `CodeQL: Compare Query` command did not work for comparing quick-eval queries. [#2422](https://github.com/github/vscode-codeql/pull/2422)
|
- Fix bug where the `CodeQL: Compare Query` command did not work for comparing quick-eval queries. [#2422](https://github.com/github/vscode-codeql/pull/2422)
|
||||||
|
|
||||||
## 1.8.4 - 3 May 2023
|
## 1.8.4 - 3 May 2023
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ export function registerCommandWithErrorHandling(
|
|||||||
const errorMessage = redactableError(error)`${
|
const errorMessage = redactableError(error)`${
|
||||||
getErrorMessage(e) || e
|
getErrorMessage(e) || e
|
||||||
} (${commandId})`;
|
} (${commandId})`;
|
||||||
const errorStack = getErrorStack(e);
|
|
||||||
if (e instanceof UserCancellationException) {
|
if (e instanceof UserCancellationException) {
|
||||||
// User has cancelled this action manually
|
// User has cancelled this action manually
|
||||||
if (e.silent) {
|
if (e.silent) {
|
||||||
@@ -61,6 +60,7 @@ export function registerCommandWithErrorHandling(
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Include the full stack in the error log only.
|
// Include the full stack in the error log only.
|
||||||
|
const errorStack = getErrorStack(e);
|
||||||
const fullMessage = errorStack
|
const fullMessage = errorStack
|
||||||
? `${errorMessage.fullMessage}\n${errorStack}`
|
? `${errorMessage.fullMessage}\n${errorStack}`
|
||||||
: errorMessage.fullMessage;
|
: errorMessage.fullMessage;
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ export async function showAndLogErrorMessage(
|
|||||||
return internalShowAndLog(
|
return internalShowAndLog(
|
||||||
dropLinesExceptInitial(message),
|
dropLinesExceptInitial(message),
|
||||||
Window.showErrorMessage,
|
Window.showErrorMessage,
|
||||||
options,
|
{ fullMessage: message, ...options },
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user