diff options
author | Andreas Tolfsen <ato@mozilla.com> | 2017-05-05 12:58:04 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-05 12:58:04 +0300 |
commit | d30e757d4496e231010526cee6e5866ceadfb9d1 (patch) | |
tree | 84dd1fc99fa2ee19144acda5c828d9739b7c2689 | |
parent | 4060a72ba56130319daef8096ece492cd04a5440 (diff) |
marionette: correct error when there is no current session (#701)
Fixes: https://github.com/mozilla/geckodriver/issues/689
-rw-r--r-- | src/marionette.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/marionette.rs b/src/marionette.rs index 35e0be9..81463c2 100644 --- a/src/marionette.rs +++ b/src/marionette.rs @@ -504,7 +504,7 @@ impl WebDriverHandler<GeckoExtensionRoute> for MarionetteHandler { }, _ => { return Err(WebDriverError::new( - ErrorStatus::UnknownError, + ErrorStatus::SessionNotCreated, "Tried to run command without establishing a connection")); } } |