mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-22 01:25:38 -05:00
* #3585: Canceled message when changing kernel * Indentation * Cleanup
This commit is contained in:
@@ -230,13 +230,14 @@ export class CellModel implements ICellModel {
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
let message: string;
|
||||
if (error.message === 'Canceled') {
|
||||
// swallow the error
|
||||
message = localize('executionCanceled', 'Query execution was canceled');
|
||||
} else {
|
||||
message = notebookUtils.getErrorMessage(error);
|
||||
}
|
||||
let message = notebookUtils.getErrorMessage(error);
|
||||
this.sendNotification(notificationService, Severity.Error, message);
|
||||
// TODO track error state for the cell
|
||||
throw error;
|
||||
} finally {
|
||||
this.fireExecutionStateChanged();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user