Skip to content

Commit

Permalink
fixup: handle all error cases
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Nov 15, 2023
1 parent 5c2d781 commit a3a3cb2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mullvad-daemon/src/settings/patch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ impl From<Error> for mullvad_management_interface::Status {
Error::InvalidOrMissingValue(_)
| Error::UnknownOrProhibitedKey(_)
| Error::ParsePatch(_)
| Error::DeserializePatched(_) => Status::invalid_argument(error.to_string()),
| Error::DeserializePatched(_)
| Error::RecursionLimit => Status::invalid_argument(error.to_string()),
Error::Settings(error) => Status::from(error),
error => Status::unknown(error.to_string()),
Error::SerializeSettings(error) => Status::internal(error.to_string()),
}
}
}
Expand Down

0 comments on commit a3a3cb2

Please sign in to comment.