toast compile/verify

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta 2020-07-21 19:40:02 +02:00
parent 42d2285fa8
commit deea43008d
2 changed files with 4 additions and 2 deletions

View File

@ -84,8 +84,9 @@ export class UploadSketch extends SketchContribution {
port: selectedPort.address, port: selectedPort.address,
optimizeForDebug: this.editorMode.compileForDebug optimizeForDebug: this.editorMode.compileForDebug
}); });
this.messageService.info('Done uploading.', { timeout: 1000 });
} catch (e) { } catch (e) {
await this.messageService.error(e.toString()); this.messageService.error(e.toString());
} finally { } finally {
if (monitorConfig) { if (monitorConfig) {
await this.monitorConnection.connect(monitorConfig); await this.monitorConnection.connect(monitorConfig);

View File

@ -71,8 +71,9 @@ export class VerifySketch extends SketchContribution {
fqbn, fqbn,
optimizeForDebug: this.editorMode.compileForDebug optimizeForDebug: this.editorMode.compileForDebug
}); });
this.messageService.info('Done compiling.', { timeout: 1000 });
} catch (e) { } catch (e) {
await this.messageService.error(e.toString()); this.messageService.error(e.toString());
} }
} }