forked from lix-project/hydra
Fix displaying errors from JSON requests
This commit is contained in:
parent
48609664a5
commit
337a72ef4d
|
@ -121,7 +121,7 @@ function escapeHTML(s) {
|
||||||
};
|
};
|
||||||
|
|
||||||
function requestFile(args) {
|
function requestFile(args) {
|
||||||
if (!"error" in args) {
|
if (!("error" in args)) {
|
||||||
args.error = function(data) {
|
args.error = function(data) {
|
||||||
json = {};
|
json = {};
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue