diff --git a/webif/html/pkg/script.js b/webif/html/pkg/script.js
index 114c442..bdbd557 100644
--- a/webif/html/pkg/script.js
+++ b/webif/html/pkg/script.js
@@ -139,7 +139,8 @@ function execopkg(arg, pkg)
error: function(_, _, e) {
if (window.console)
console.log("ajax error");
- alert(e);
+ if (e.length)
+ alert(e);
}
});
busy = false;