Skip to content

Commit f134660

Browse files
committed
chore: Add error logger
Signed-off-by: Tomas Kislan <tomas@kislan.sk>
1 parent c63c5e6 commit f134660

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/notebooks/deepnote/deepnoteNotebookCommandListener.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ import {
1111
NotebookRange,
1212
NotebookCell
1313
} from 'vscode';
14+
import z from 'zod';
15+
16+
import { logger } from '../../platform/logging';
1417
import { IExtensionSyncActivationService } from '../../platform/activation/types';
1518
import { IDisposableRegistry } from '../../platform/common/types';
1619
import { Commands } from '../../platform/common/constants';
@@ -28,7 +31,6 @@ import {
2831
DeepnoteFileInputMetadataSchema,
2932
DeepnoteButtonMetadataSchema
3033
} from './deepnoteSchemas';
31-
import z from 'zod';
3234

3335
type InputBlockType =
3436
| 'input-text'
@@ -76,6 +78,7 @@ export function safeParseDeepnoteVariableNameFromContentJson(content: string): s
7678
try {
7779
return JSON.parse(content)['deepnote_variable_name'];
7880
} catch (error) {
81+
logger.error('Error parsing deepnote variable name from content JSON', error);
7982
return undefined;
8083
}
8184
}

0 commit comments

Comments
 (0)