Commit 9936d285 authored by Tristan Cavelier's avatar Tristan Cavelier

erp5storage: Handle bad answers

parent ad6b5c35
...@@ -281,7 +281,14 @@ jIO.addStorageType("erp5", function (spec, my) { ...@@ -281,7 +281,14 @@ jIO.addStorageType("erp5", function (spec, my) {
if (one.err !== null) { if (one.err !== null) {
return jql.respond(one.err, undefined); return jql.respond(one.err, undefined);
} }
return jql.respond(undefined, one.response); if (one.response !== null) {
return jql.respond(undefined, one.response);
}
return jql.respond(priv.createError(
24,
"Cannot parse data",
"Corrupted data"
), undefined);
}); });
return jql.to_return; return jql.to_return;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment