Commit 96bf766f authored by Romain Courteaud's avatar Romain Courteaud

Release 3.43.0

parent 48ea995c
Pipeline #15426 passed with stage
in 0 seconds
...@@ -26,7 +26,7 @@ TESTDIR = test ...@@ -26,7 +26,7 @@ TESTDIR = test
EXAMPLEDIR = examples EXAMPLEDIR = examples
EXTERNALDIR = external EXTERNALDIR = external
VERSION = 3.42.1 VERSION = 3.43.0
JIOVERSION = ${DISTDIR}/jio-v${VERSION}.js JIOVERSION = ${DISTDIR}/jio-v${VERSION}.js
JIOLATEST = ${DISTDIR}/jio-latest.js JIOLATEST = ${DISTDIR}/jio-latest.js
JIONODEVERSION = ${DISTDIR}/jio-v${VERSION}-node.js JIONODEVERSION = ${DISTDIR}/jio-v${VERSION}-node.js
......
...@@ -14223,6 +14223,13 @@ var jIO = window.jIO, ...@@ -14223,6 +14223,13 @@ var jIO = window.jIO,
); );
} }
return evt.target.response; return evt.target.response;
}, function (error) {
if ((error.target !== undefined) &&
(error.target.status === 404)) {
throw new jIO.util.jIOError("Cannot find attachment: " + action,
404);
}
throw error;
}); });
} }
throw new jIO.util.jIOError("ERP5: not support get attachment: " + action, throw new jIO.util.jIOError("ERP5: not support get attachment: " + action,
......
...@@ -13684,6 +13684,13 @@ return new Parser; ...@@ -13684,6 +13684,13 @@ return new Parser;
); );
} }
return evt.target.response; return evt.target.response;
}, function (error) {
if ((error.target !== undefined) &&
(error.target.status === 404)) {
throw new jIO.util.jIOError("Cannot find attachment: " + action,
404);
}
throw error;
}); });
} }
throw new jIO.util.jIOError("ERP5: not support get attachment: " + action, throw new jIO.util.jIOError("ERP5: not support get attachment: " + action,
...@@ -15000,10 +15007,7 @@ return new Parser; ...@@ -15000,10 +15007,7 @@ return new Parser;
} catch (error) { } catch (error) {
reject(error); reject(error);
} }
return new RSVP.Queue() return new RSVP.Queue(result)
.push(function () {
return result;
})
.push(function (final_result) { .push(function (final_result) {
canceller(); canceller();
resolve(final_result); resolve(final_result);
...@@ -15035,10 +15039,7 @@ return new Parser; ...@@ -15035,10 +15039,7 @@ return new Parser;
reject(error); reject(error);
} }
tx.oncomplete = function () { tx.oncomplete = function () {
return new RSVP.Queue() return new RSVP.Queue(result)
.push(function () {
return result;
})
.push(resolve, function (error) { .push(resolve, function (error) {
canceller(); canceller();
reject(error); reject(error);
......
This diff is collapsed.
This diff is collapsed.
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