From 6376227acbd44fe96ffc7806a727d9077e972b77 Mon Sep 17 00:00:00 2001 From: Juntao Wang Date: Wed, 25 Sep 2024 11:53:14 -0400 Subject: [PATCH] Update error message when importing custom notebook image --- backend/src/routes/api/images/imageUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/routes/api/images/imageUtils.ts b/backend/src/routes/api/images/imageUtils.ts index 10fca0f949..c826584643 100644 --- a/backend/src/routes/api/images/imageUtils.ts +++ b/backend/src/routes/api/images/imageUtils.ts @@ -324,7 +324,7 @@ export const postImage = async ( } catch (e) { if (e.response?.statusCode !== 404) { fastify.log.error(e, 'Unable to add notebook image'); - return { success: false, error: 'Unable to add notebook image: ' + e.message }; + return { success: false, error: 'Unable to add notebook image: ' + e.response.body.message }; } } };