mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Fix callback to display error message instead of {1} (#5577)
This commit is contained in:
@@ -212,6 +212,9 @@ export default class QueryRunner extends Disposable {
|
|||||||
private handleFailureRunQueryResult(error: any) {
|
private handleFailureRunQueryResult(error: any) {
|
||||||
// Attempting to launch the query failed, show the error message
|
// Attempting to launch the query failed, show the error message
|
||||||
const eol = this.getEolString();
|
const eol = this.getEolString();
|
||||||
|
if (error instanceof Error) {
|
||||||
|
error = error.message;
|
||||||
|
}
|
||||||
let message = nls.localize('query.ExecutionFailedError', 'Execution failed due to an unexpected error: {0}\t{1}', eol, error);
|
let message = nls.localize('query.ExecutionFailedError', 'Execution failed due to an unexpected error: {0}\t{1}', eol, error);
|
||||||
this.handleMessage(<azdata.QueryExecuteMessageParams>{
|
this.handleMessage(<azdata.QueryExecuteMessageParams>{
|
||||||
ownerUri: this.uri,
|
ownerUri: this.uri,
|
||||||
|
|||||||
Reference in New Issue
Block a user