Skip to content

Commit

Permalink
fix: Simulate bundle error message (#90)
Browse files Browse the repository at this point in the history
* fix: simulate bundle error message

* change error code to 400
  • Loading branch information
yvesfracari authored Oct 21, 2024
1 parent 4a913cb commit 775f04b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const root: FastifyPluginAsync = async (fastify): Promise<void> => {
params: paramsSchema,
response: {
'2XX': successSchema,
'404': errorSchema,
'400': errorSchema,
},
},
},
Expand All @@ -123,7 +123,7 @@ const root: FastifyPluginAsync = async (fastify): Promise<void> => {
);

if (simulationResult === null) {
reply.code(404).send({ message: 'Token holders not found' });
reply.code(400).send({ message: 'Build simulation error' });
return;
}
fastify.log.info(
Expand Down

0 comments on commit 775f04b

Please sign in to comment.