better error handling for zstddec-tar1090

This commit is contained in:
Matthias Wirth
2022-07-19 16:29:06 +02:00
parent fdb84706ab
commit 63df26c70c
7 changed files with 86 additions and 84 deletions

View File

@@ -464,11 +464,7 @@ function fetchData(options) {
try {
res = zstdDecode( arr, 0 );
} catch (e) {
webAssemblyFail(e);
return;
}
if (res.byteLength == 0) {
let errText = "zstd decompression failed, no data!";
let errText = e.message;
console.log(errText);
jQuery("#update_error_detail").text(errText);
jQuery("#update_error").css('display','block');