We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e153dc commit 008884fCopy full SHA for 008884f
packages/react/src/jupyter/kernel/KernelExecutor.ts
@@ -258,13 +258,9 @@ export class KernelExecutor {
258
break;
259
case 'error':
260
{
261
- // NOTE: This block that was here previously cannot extract the properties consistently,
262
- //causing the Promise to never be rejected in case of an execution error.
263
- // const { ename, evalue, traceback } = (
264
- // content as any as KernelMessage.IErrorMsg
265
- // ).content;
+ const { ename, evalue, traceback } = content as KernelMessage.IReplyErrorContent;
266
this._executed.reject(
267
- `${content.ename}: ${content.evalue}\n${(content.traceback ?? []).join('\n')}`
+ `${ename}: ${evalue}\n${(traceback ?? []).join('\n')}`
268
);
269
}
270
0 commit comments