Use string for error code & enforce type safety to prevent crash
Merge pull request #1798 from wordpress-mobile/issue/1797-error-crash

Prevent crash when WordPressComApi errorMessageForError is called