Update Changes
diff --git a/dev/js/src/init.js b/dev/js/src/init.js
index e79837b..eafb021 100644
--- a/dev/js/src/init.js
+++ b/dev/js/src/init.js
@@ -196,11 +196,19 @@
if (KorAP.koralQuery["errors"]) {
var errors = KorAP.koralQuery["errors"];
for (var i in errors) {
- if (errors[i][0] === 302) {
+
+ // Malformed query
+ if (errors[i][0] === 302 && errors[i][2]) {
obj.hint = hintClass.create();
obj.hint.alert(errors[i][2], errors[i][1]);
break;
}
+
+ // no query
+ else if (errors[i][0] === 301) {
+ obj.hint = hintClass.create();
+ obj.hint.alert(0, errors[i][1]);
+ }
}
};