Use tuple err source PeachError::JsonRpcClientCore #42

Merged
glyph merged 1 commits from fix_client_error into main 2021-12-08 08:10:07 +00:00
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ pub fn save_dns_configuration(dns_form: DnsForm) -> Result<(), PeachWebError> {
info!("Failed to register dyndns domain: {:?}", err);
// json response for failed update
let msg: String = match err {
PeachError::JsonRpcClientCore { source } => {
PeachError::JsonRpcClientCore(source) => {
match source {
Error(ErrorKind::JsonRpcError(err), _state) => match err.code {
ErrorCode::ServerError(-32030) => {