Skip to content

Commit

Permalink
Add error handling to CORS text module request
Browse files Browse the repository at this point in the history
  • Loading branch information
rphilipp64 committed May 1, 2019
1 parent d04de4f commit 650ec0e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions text.js
Expand Up @@ -216,6 +216,10 @@ define(['module'], function (module) {
req([nonStripName], function (content) {
text.finishLoad(parsed.moduleName + '.' + parsed.ext,
parsed.strip, content, onLoad);
}, function (err) {
if (onLoad.error) {
onLoad.error(err);
}
});
}
},
Expand Down

0 comments on commit 650ec0e

Please sign in to comment.