diff --git a/mindplot/src/main/javascript/RestPersistenceManager.js b/mindplot/src/main/javascript/RestPersistenceManager.js index 1a6f7564..f4a09bd4 100644 --- a/mindplot/src/main/javascript/RestPersistenceManager.js +++ b/mindplot/src/main/javascript/RestPersistenceManager.js @@ -99,10 +99,12 @@ mindplot.RESTPersistenceManager = new Class({ } } events.onError(userMsg); - - // @Todo: Only for debug. Remove. persistence.onSave = false; - throw new Error("responseText:" + responseText + ",status:" + this.status); + + // @Todo: Only for debug. Remove ... + if (this.status != 0) { + throw new Error("responseText:" + responseText + ",status:" + this.status); + } }, headers:{"Content-Type":"application/json", "Accept":"application/json"},