Skip to content

Commit

Permalink
remote sync skip update
Browse files Browse the repository at this point in the history
  • Loading branch information
jamuhl committed Sep 21, 2015
1 parent fb2e69b commit 2f779d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backends/remoteSync/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "Jan Muehlemann"
, "name": "i18next.remotesync"
, "version": "1.6.5"
, "version": "1.6.6"
, "contributors": [
{ "name": "Jan Muehlemann", "email": "jan.muehlemann@gmail.com" }
]
Expand Down
3 changes: 2 additions & 1 deletion backends/remoteSync/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ module.exports = {

request(url, function(err, res, body) {
if (err) {
err.i18nSkipOnError = true; // will ignore and not write to resStore --> retry on next access
cb(err);
} else if (res.statusCode && (res.statusCode.toString().indexOf('5') === 0 || res.statusCode === 404)) {
var err = new Error(res.statusMessage);
err.i18nSkipOnError = true;
err.i18nSkipOnError = true; // will ignore and not write to resStore --> retry on next access
cb(err);
} else {
try {
Expand Down

0 comments on commit 2f779d4

Please sign in to comment.