I originally had this as a fix for 585 but realized the root issue is that girder will send errors back as e.message. Checking for this gets us the desired message.
Note that the error message isn't removed when the user selects an environment. We don't know what kind of error we get back, so we have no way to know when to clear the error message. For example, we wouldn't want to clear an authentication error when the user selects a valid environment.
Fixes https://github.com/whole-tale/dashboard/issues/585 and https://github.com/whole-tale/dashboard/issues/524
I originally had this as a fix for 585 but realized the root issue is that girder will send errors back as
e.message
. Checking for this gets us the desired message.Note that the error message isn't removed when the user selects an environment. We don't know what kind of error we get back, so we have no way to know when to clear the error message. For example, we wouldn't want to clear an authentication error when the user selects a valid environment.
To Test: