feat: polish project editing
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
pub(crate) mod error;
|
||||
pub(crate) mod error_vec;
|
||||
pub(crate) mod project_create_error;
|
||||
pub(crate) mod task_create_error;
|
||||
pub(crate) mod project_error;
|
||||
pub(crate) mod task_error;
|
||||
|
@ -34,6 +34,12 @@ impl From<ValidationErrors> for ErrorVec<ProjectError> {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<diesel::result::Error> for ProjectError {
|
||||
fn from(_: diesel::result::Error) -> Self {
|
||||
ProjectError::Error(Error::ServerInternal)
|
||||
}
|
||||
}
|
||||
|
||||
// Has to be implemented for Dioxus server functions.
|
||||
impl Display for ProjectError {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
Reference in New Issue
Block a user