From 9c2499458b8ac14e0d6df09f0746e8d0051b1d3f Mon Sep 17 00:00:00 2001 From: Aaron Munger Date: Fri, 15 Nov 2024 16:28:53 -0800 Subject: [PATCH] separate name and message for API update (#16227) --- src/kernels/execution/cellExecutionMessageHandler.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kernels/execution/cellExecutionMessageHandler.ts b/src/kernels/execution/cellExecutionMessageHandler.ts index a110728f1e4..785bf3d9e1a 100644 --- a/src/kernels/execution/cellExecutionMessageHandler.ts +++ b/src/kernels/execution/cellExecutionMessageHandler.ts @@ -1078,7 +1078,8 @@ export class CellExecutionMessageHandler implements IDisposable { const cellExecution = CellExecutionCreator.get(this.cell); if (cellExecution && msg.content.ename !== 'KeyboardInterrupt') { cellExecution.errorInfo = { - message: `${msg.content.ename}: ${msg.content.evalue}`, + name: msg.content.ename, + message: msg.content.evalue, location: findErrorLocation(msg.content.traceback, this.cell), uri: this.cell.document.uri, stack: msg.content.traceback.join('\n')