Fix displaying errors from JSON requests

This commit is contained in:
Eelco Dolstra 2017-08-17 15:32:46 +02:00
parent 48609664a5
commit 337a72ef4d
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -121,7 +121,7 @@ function escapeHTML(s) {
};
function requestFile(args) {
if (!"error" in args) {
if (!("error" in args)) {
args.error = function(data) {
json = {};
try {