commit | 962fff94e57f7bd7b1aeadbf44c64b60df94857c | [log] [tgz] |
---|---|---|
author | Akron <nils@diewald-online.de> | Mon Oct 12 14:25:49 2020 +0200 |
committer | Akron <nils@diewald-online.de> | Mon Oct 12 14:25:49 2020 +0200 |
tree | b988d2acd0c39fa8b4e951a017ddd4a3628d0f0c | |
parent | b50964aa695a146a6447af7305890a80bbfb8bb8 [diff] [blame] |
Fix error catching Change-Id: Ibb9f0a8dc3a31a56ac589617c12bdae5b44246a5
diff --git a/dev/js/src/api.js b/dev/js/src/api.js index 7a85dc0..059e638 100644 --- a/dev/js/src/api.js +++ b/dev/js/src/api.js
@@ -166,7 +166,7 @@ onload(undefined); return; }; - if (json !== null && json["errors"] !== null) { + if (json !== undefined && json["errors"] !== undefined) { json["errors"].forEach( e => KorAP.log(e[0], e[1] || "Unknown") );