bug 1494613: geckodriver: log reason for not being able to write profile r=whimboo

mozprofile gives us an error and we can forward it to the user so
we know what the underlying reason is for not being able to write
the Firefox profile.

Depends on D7075

Differential Revision: https://phabricator.services.mozilla.com/D7076

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andreas Tolfsen 2018-09-27 13:17:16 +00:00
parent d1886a0a8b
commit c3fce9b592

View File

@ -221,8 +221,11 @@ impl MarionetteHandler {
);
prefs.insert("marionette.port", Pref::new(port));
prefs.write().map_err(|_| {
WebDriverError::new(ErrorStatus::UnknownError, "Unable to write Firefox profile")
prefs.write().map_err(|e| {
WebDriverError::new(
ErrorStatus::UnknownError,
format!("Unable to write Firefox profile: {}", e),
)
})
}
}