Skip to content

Commit

Permalink
Update error message when importing custom notebook image
Browse files Browse the repository at this point in the history
  • Loading branch information
DaoDaoNoCode committed Sep 25, 2024
1 parent 2234813 commit 6376227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/routes/api/images/imageUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
}
}
};
Expand Down

0 comments on commit 6376227

Please sign in to comment.