From 3448bc17ab6143bc720028c7c2b36876ff82b53e Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Mon, 7 Mar 2022 23:42:20 -0800 Subject: [PATCH] Stop execution on error during initialization (#191) --- src/install-dialog.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/install-dialog.ts b/src/install-dialog.ts index 7a40c86..0fbd678 100644 --- a/src/install-dialog.ts +++ b/src/install-dialog.ts @@ -656,6 +656,7 @@ class EwtInstallDialog extends LitElement { this._state = "ERROR"; this._error = "Serial port is not readable/writable. Close any other application using it and try again."; + return; } try { @@ -663,6 +664,7 @@ class EwtInstallDialog extends LitElement { } catch (err: any) { this._state = "ERROR"; this._error = "Failed to download manifest"; + return; } if (this._manifest.new_install_improv_wait_time === 0) {