mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
parent
ac094821c8
commit
a8c05f4be7
1 changed files with 0 additions and 3 deletions
|
@ -615,7 +615,6 @@ export default Controller.extend({
|
||||||
captureMessage('Saving post required multiple attempts', {attempts, totalSeconds});
|
captureMessage('Saving post required multiple attempts', {attempts, totalSeconds});
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log('caught error', {error});
|
|
||||||
attempts += 1;
|
attempts += 1;
|
||||||
|
|
||||||
if (isServerUnreachableError(error) && attempts < maxAttempts) {
|
if (isServerUnreachableError(error) && attempts < maxAttempts) {
|
||||||
|
@ -628,10 +627,8 @@ export default Controller.extend({
|
||||||
}
|
}
|
||||||
|
|
||||||
// simulate a validation error so we don't end up on a 500 screen
|
// simulate a validation error so we don't end up on a 500 screen
|
||||||
console.log('throwing undefined');
|
|
||||||
throw undefined;
|
throw undefined;
|
||||||
} else {
|
} else {
|
||||||
console.log('throwing error', isServerUnreachableError(error), error);
|
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue