@@ -42,20 +42,26 @@ impl Display for AppError {
4242 AppError :: GroupNotFound => write ! ( f, "Group not found" ) ,
4343 AppError :: CreateGroupFailed ( msg) => write ! ( f, "Create group failed: {}" , msg) ,
4444 AppError :: DeleteGroupFailed ( msg) => write ! ( f, "Delete group failed: {}" , msg) ,
45+
4546 AppError :: FileNotFound => write ! ( f, "File not found" ) ,
4647 AppError :: CreateFileFailed ( msg) => write ! ( f, "Create file failed: {}" , msg) ,
4748 AppError :: DeleteFileFailed ( msg) => write ! ( f, "Delete file failed: {}" , msg) ,
49+
4850 AppError :: TagNotFound => write ! ( f, "Tag not found" ) ,
4951 AppError :: CreateTagFailed ( msg) => write ! ( f, "Create tag failed: {}" , msg) ,
5052 AppError :: DeleteTagFailed ( msg) => write ! ( f, "Delete tag failed: {}" , msg) ,
53+
5154 AppError :: GroupTagNotFound => write ! ( f, "GroupTag not found" ) ,
5255 AppError :: CannotAssociateWithPrimary => write ! ( f, "Cannot associate with primary group" ) ,
5356 AppError :: CreateGroupTagFailed ( msg) => write ! ( f, "Create GroupTag failed: {}" , msg) ,
5457 AppError :: DeleteGroupTagFailed ( msg) => write ! ( f, "Delete GroupTag failed: {}" , msg) ,
58+
5559 AppError :: FileGroupNotFound => write ! ( f, "FileGroup not found" ) ,
5660 AppError :: CreateFileGroupFailed ( msg) => write ! ( f, "Create FileGroup failed: {}" , msg) ,
5761 AppError :: DeleteFileGroupFailed ( msg) => write ! ( f, "Delete FileGroup failed: {}" , msg) ,
62+
5863 AppError :: ValidationError ( msg) => write ! ( f, "Validation error: {}" , msg) ,
64+
5965 AppError :: DieselError ( e) => write ! ( f, "Database error: {}" , e) ,
6066 // other Errors...
6167 _ => write ! ( f, "Unknown error occurred" ) ,
0 commit comments