Display Better Error When API Host is not Set

- Display an error message informing the user to set the API host if it is not set
- Add test to ensure error message is displayed
2 files changed