]> Untitled Git - lemmy.git/blobdiff - crates/api_crud/src/post/update.rs
Rework error handling (fixes #1714) (#2135)
[lemmy.git] / crates / api_crud / src / post / update.rs
index 7a85f8638df159ce8a325c28f5b9722f758ef026..fa19c2c9bddd396b176872ff58691e3c8469716d 100644 (file)
@@ -103,7 +103,7 @@ impl PerformCrud for EditPost {
           "couldnt_update_post"
         };
 
-        return Err(LemmyError::from(e).with_message(err_type));
+        return Err(LemmyError::from_error_message(e, err_type));
       }
     };