From 4b84396f8362ff10d7f809dc6709dfad0942fed6 Mon Sep 17 00:00:00 2001 From: Yuri Iozzelli Date: Tue, 1 Oct 2024 12:52:47 +0200 Subject: [PATCH] print an error on the terminal if the HttpBytesDevice fails to initialize --- index.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 2549ff1..1ef68ff 100644 --- a/index.html +++ b/index.html @@ -368,7 +368,15 @@ __ __ _ __ ____ __ } break; case "bytes": - blockDevice = await CheerpX.HttpBytesDevice.create(image_url); + try + { + blockDevice = await CheerpX.HttpBytesDevice.create(image_url); + } + catch(e) + { + printOnTerm.printError([e]); + throw e; + } break; case "github": blockDevice = await CheerpX.GitHubDevice.create(image_url);