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 }; } } };