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:
Alan Ren
2022-06-13 16:18:27 -07:00
committed by GitHub
parent 037daf8528
commit ba82444229
4 changed files with 9 additions and 7 deletions

View File

@@ -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.
};
}

View File

@@ -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;
}