Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Yuri Iozzelli
5c9fd74dea print an error on the terminal if the HttpBytesDevice fails to initialize 2024-10-01 12:52:47 +02:00

View file

@ -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);