Skip to content

Commit

Permalink
geckodriver: Merge pull request #64 from andreastt/error-typo
Browse files Browse the repository at this point in the history
fix typo in error message for parsing errors

Source-Repo: https://github.com/mozilla/geckodriver
Source-Revision: 8d03117f1448621ee521034ccdeaacc28103813f

--HG--
extra : rebase_source : bbb1980998fb989858dec2d3fcbf0bd961078a8c
  • Loading branch information
andreastt committed May 23, 2016
1 parent e909e13 commit b17ee86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testing/geckodriver/src/marionette.rs
Original file line number Diff line number Diff line change
Expand Up @@ -964,13 +964,13 @@ impl MarionetteError {
ErrorStatus::UnknownError,
"Error value has no message").as_string(),
ErrorStatus::UnknownError,
"Error messsage was not a string").into();
"Error message was not a string").into();

let stacktrace = match data.find("stacktrace") {
None | Some(&Json::Null) => None,
Some(x) => Some(try_opt!(x.as_string(),
ErrorStatus::UnknownError,
"Error messsage was not a string").into()),
"Error message was not a string").into()),
};
Ok(MarionetteError::new(status, message, stacktrace))
}
Expand Down

0 comments on commit b17ee86

Please sign in to comment.