mirror of
https://github.com/esphome/esp-web-tools.git
synced 2025-07-28 14:16:41 +00:00
Stop execution on error during initialization (#191)
This commit is contained in:
parent
18c2053995
commit
3448bc17ab
@ -656,6 +656,7 @@ class EwtInstallDialog extends LitElement {
|
|||||||
this._state = "ERROR";
|
this._state = "ERROR";
|
||||||
this._error =
|
this._error =
|
||||||
"Serial port is not readable/writable. Close any other application using it and try again.";
|
"Serial port is not readable/writable. Close any other application using it and try again.";
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -663,6 +664,7 @@ class EwtInstallDialog extends LitElement {
|
|||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
this._state = "ERROR";
|
this._state = "ERROR";
|
||||||
this._error = "Failed to download manifest";
|
this._error = "Failed to download manifest";
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._manifest.new_install_improv_wait_time === 0) {
|
if (this._manifest.new_install_improv_wait_time === 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user