Skip to content

Commit ed9537b

Browse files
committed
add unsupported_integration error category
1 parent 7cb3073 commit ed9537b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/platform/errors/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ export type ErrorCategory =
105105
| 'unknownProduct'
106106
| 'invalidInterpreter'
107107
| 'pythonAPINotInitialized'
108-
| 'deepnoteserver';
108+
| 'deepnoteserver'
109+
| 'unsupported_integration';
109110

110111
// If there are errors, then the are added to the telementry properties.
111112
export type TelemetryErrorProperties = {

src/platform/errors/unsupportedIntegrationError.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ import { BaseError } from './types';
1313
*/
1414
export class UnsupportedIntegrationError extends BaseError {
1515
constructor(message: string) {
16-
super('unknown', message);
16+
super('unsupported_integration', message);
1717
}
1818
}

0 commit comments

Comments
 (0)