mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 17:22:45 -05:00
Add new errorCode property to notebook errors to see if starting a notebook session failed. (#18617)
This commit is contained in:
@@ -108,7 +108,7 @@ export class ExtHostNotebook implements ExtHostNotebookShape {
|
||||
};
|
||||
return details;
|
||||
} catch (error) {
|
||||
throw typeof (error) === 'string' ? new Error(error) : error;
|
||||
throw typeof (error) === 'string' ? new Error(error) : Object.assign(error, { errorCode: error.response?.status }); // Add errorCode so that status info persists over RPC
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user