Skip to content

Commit

Permalink
fix(asset-server-plugin): Do not return raw error message on error
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Sep 18, 2024
1 parent 9f4a814 commit 801980e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/asset-server-plugin/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ export class AssetServerPlugin implements NestModule, OnApplicationBootstrap {
res.send(imageBuffer);
return;
} catch (e: any) {
Logger.error(e, loggerCtx, e.stack);
res.status(500).send(e.message);
Logger.error(e.message, loggerCtx, e.stack);
res.status(500).send('An error occurred when generating the image');
return;
}
}
Expand Down

0 comments on commit 801980e

Please sign in to comment.