Skip to content

Commit 2b68145

Browse files
fix: Fix error handling in TS (box/box-codegen#882) (#1180)
1 parent f8a6433 commit 2b68145

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎.codegen.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "engineHash": "5898d26", "specHash": "8b51a89", "version": "10.0.1" }
1+
{ "engineHash": "eaa2648", "specHash": "8b51a89", "version": "10.0.1" }

‎src/box/errors.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ export class BoxApiError extends BoxSdkError {
5454
) {
5555
super(fields);
5656
this.name = 'BoxApiError';
57+
this.requestInfo = fields.requestInfo;
58+
this.responseInfo = fields.responseInfo;
5759
if (fields.dataSanitizer) {
5860
this.dataSanitizer = fields.dataSanitizer;
5961
}

0 commit comments

Comments
 (0)