From f58c9b8c2d3292dadad8e509be17d24ebf981840 Mon Sep 17 00:00:00 2001 From: Silvano Cerza Date: Wed, 20 Oct 2021 17:44:35 +0200 Subject: [PATCH] Remove gRPC errors codes from compile/upload console output --- arduino-ide-extension/src/node/core-service-impl.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arduino-ide-extension/src/node/core-service-impl.ts b/arduino-ide-extension/src/node/core-service-impl.ts index 6d6a0a34a..e1a76eea1 100644 --- a/arduino-ide-extension/src/node/core-service-impl.ts +++ b/arduino-ide-extension/src/node/core-service-impl.ts @@ -84,7 +84,7 @@ export class CoreServiceImpl extends CoreClientAware implements CoreService { }); } catch (e) { this.responseService.appendToOutput({ - chunk: `Compilation error: ${e}\n`, + chunk: `Compilation error: ${e.details}\n`, severity: 'error', }); throw e; @@ -169,7 +169,7 @@ export class CoreServiceImpl extends CoreClientAware implements CoreService { }); } catch (e) { this.responseService.appendToOutput({ - chunk: `${firstToUpperCase(task)} error: ${e}\n`, + chunk: `${firstToUpperCase(task)} error: ${e.details}\n`, severity: 'error', }); throw e; @@ -214,7 +214,7 @@ export class CoreServiceImpl extends CoreClientAware implements CoreService { }); } catch (e) { this.responseService.appendToOutput({ - chunk: `Error while burning the bootloader: ${e}\n`, + chunk: `Error while burning the bootloader: ${e.details}\n`, severity: 'error', }); throw e;