mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-10-25 11:08:32 +00:00
Remove gRPC error code from error notifications
This commit is contained in:
committed by
Silvano Cerza
parent
f0d9894a16
commit
5ddab1ded7
@@ -277,7 +277,13 @@ export class UploadSketch extends SketchContribution {
|
||||
{ timeout: 3000 }
|
||||
);
|
||||
} catch (e) {
|
||||
this.messageService.error(e.toString());
|
||||
let errorMessage = "";
|
||||
if (typeof e === "string") {
|
||||
errorMessage = e;
|
||||
} else {
|
||||
errorMessage = e.toString();
|
||||
}
|
||||
this.messageService.error(errorMessage);
|
||||
} finally {
|
||||
this.uploadInProgress = false;
|
||||
this.onDidChangeEmitter.fire();
|
||||
|
||||
Reference in New Issue
Block a user