Skip to content

Commit 3b04d8d

Browse files
authored
Remove gRPC errors codes from compile/upload console output (#564)
1 parent 99d6553 commit 3b04d8d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: arduino-ide-extension/src/node/core-service-impl.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export class CoreServiceImpl extends CoreClientAware implements CoreService {
8484
});
8585
} catch (e) {
8686
this.responseService.appendToOutput({
87-
chunk: `Compilation error: ${e}\n`,
87+
chunk: `Compilation error: ${e.details}\n`,
8888
severity: 'error',
8989
});
9090
throw e;
@@ -169,7 +169,7 @@ export class CoreServiceImpl extends CoreClientAware implements CoreService {
169169
});
170170
} catch (e) {
171171
this.responseService.appendToOutput({
172-
chunk: `${firstToUpperCase(task)} error: ${e}\n`,
172+
chunk: `${firstToUpperCase(task)} error: ${e.details}\n`,
173173
severity: 'error',
174174
});
175175
throw e;
@@ -214,7 +214,7 @@ export class CoreServiceImpl extends CoreClientAware implements CoreService {
214214
});
215215
} catch (e) {
216216
this.responseService.appendToOutput({
217-
chunk: `Error while burning the bootloader: ${e}\n`,
217+
chunk: `Error while burning the bootloader: ${e.details}\n`,
218218
severity: 'error',
219219
});
220220
throw e;

0 commit comments

Comments
 (0)