Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Fix editor error handling #128

Merged
merged 1 commit into from
Jul 18, 2016

Conversation

kevinansfield
Copy link
Collaborator

@kevinansfield kevinansfield commented Jul 15, 2016

closes TryGhost/Ghost#7099

  • update editor base controller's showErrorAlert method to handle AdapterError or AjaxError objects
  • update PSM's error handling so that we don't pass an error object wrapped in an array to showAPIError (this was causing the default error message to always be displayed and the global version mismatch/maintenance mode handling to be skipped if an error was encountered when changing a value in the PSM triggered a save)
  • add missing title attribute to Mirage's Post factory
  • remove some leftover console.logs

TODO:

  • add test for editor API error handling

@kevinansfield kevinansfield changed the title Fix editor error handling [WIP] Fix editor error handling Jul 15, 2016
closes TryGhost/Ghost#7099
- update editor base controller's `showErrorAlert` method to handle `AdapterError` or `AjaxError` objects
- update PSM's error handling so that we don't pass an error object wrapped in an array to `showAPIError`
- add missing title attribute to Mirage's Post factory
- remove some leftover `console.log`s
@kevinansfield kevinansfield changed the title [WIP] Fix editor error handling Fix editor error handling Jul 18, 2016
@kevinansfield
Copy link
Collaborator Author

⚡️ready for review

@acburdine
Copy link
Member

LGTM 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Scheduling post obscure error
2 participants