From 1fdce941bb27451f879a36d14e2c3dcb7742a191 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Sat, 21 Dec 2024 20:06:33 +0100 Subject: Show possible error on app creation --- src/graphql/types/notification.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/graphql') diff --git a/src/graphql/types/notification.rs b/src/graphql/types/notification.rs index fc71c11..21fc1aa 100644 --- a/src/graphql/types/notification.rs +++ b/src/graphql/types/notification.rs @@ -128,7 +128,7 @@ impl Notification { let row = rows[0].clone(); Ok(row.get("id")) } - Err(_) => Err(AppError::Database), + Err(e) => Err(AppError::Database(e.to_string())), } } } -- cgit v1.2.3-18-g5258