Custom error handling done in ViewController - TODO unify the error dialogs