print an error on the terminal if the HttpBytesDevice fails to initialize
This commit is contained in:
parent
c6ff3283d6
commit
4b84396f83
@ -368,7 +368,15 @@ __ __ _ __ ____ __
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "bytes":
|
case "bytes":
|
||||||
|
try
|
||||||
|
{
|
||||||
blockDevice = await CheerpX.HttpBytesDevice.create(image_url);
|
blockDevice = await CheerpX.HttpBytesDevice.create(image_url);
|
||||||
|
}
|
||||||
|
catch(e)
|
||||||
|
{
|
||||||
|
printOnTerm.printError([e]);
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case "github":
|
case "github":
|
||||||
blockDevice = await CheerpX.GitHubDevice.create(image_url);
|
blockDevice = await CheerpX.GitHubDevice.create(image_url);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user