mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
additional data property to error object and use it for table designer scenarios (#19713)
* add data property to error object * vbump sts
This commit is contained in:
@@ -111,7 +111,8 @@ export function transformErrorForSerialization(error: any): any {
|
||||
name,
|
||||
message,
|
||||
stack,
|
||||
errorCode
|
||||
errorCode,
|
||||
data: (<any>error).data // {{SQL CARBON EDIT}} Add data property.
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -446,6 +446,7 @@ export class RPCProtocol extends Disposable implements IRPCProtocol {
|
||||
err.message = value.message;
|
||||
err.stack = value.stack;
|
||||
err.errorCode = value.errorCode; // {{SQL CARBON EDIT}} Include custom error code
|
||||
err.data = value.data; // {{SQL CARBON EDIT}} Include custom data
|
||||
} else {
|
||||
err = value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user