diff --git a/parity/user_defaults.rs b/parity/user_defaults.rs index a1078b634ec..652abfea10d 100644 --- a/parity/user_defaults.rs +++ b/parity/user_defaults.rs @@ -128,7 +128,13 @@ impl Default for UserDefaults { impl UserDefaults { pub fn load

(path: P) -> Result where P: AsRef { match File::open(path) { - Ok(file) => from_reader(file).map_err(|e| e.to_string()), + Ok(file) => match from_reader(file) { + Ok(defaults) => Ok(defaults), + Err(e) => { + warn!("Error loading user defaults file: {:?}", e); + Ok(UserDefaults::default()) + }, + }, _ => Ok(UserDefaults::default()), } }