Remove gRPC errors codes from compile/upload console output (#564)

This commit is contained in:
Silvano Cerza 2021-11-05 10:08:06 +01:00 committed by GitHub
parent 99d65531c4
commit 3b04d8df26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;