mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
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:
parent
d1886a0a8b
commit
c3fce9b592
@ -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),
|
||||
)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user