mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -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) {
|
} catch (error) {
|
||||||
|
let message: string;
|
||||||
if (error.message === 'Canceled') {
|
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);
|
this.sendNotification(notificationService, Severity.Error, message);
|
||||||
// TODO track error state for the cell
|
// TODO track error state for the cell
|
||||||
throw error;
|
|
||||||
} finally {
|
} finally {
|
||||||
this.fireExecutionStateChanged();
|
this.fireExecutionStateChanged();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user