diff --git a/packages/indexer-api/src/error-handler.ts b/packages/indexer-api/src/error-handler.ts index ee00a56..92964fc 100644 --- a/packages/indexer-api/src/error-handler.ts +++ b/packages/indexer-api/src/error-handler.ts @@ -31,7 +31,7 @@ const errorHandler = ( }); } else if (err instanceof StructError) { res.status(StatusCodes.BAD_REQUEST).json({ - error: "InputValidationError", + error: "ValidationError", message: err.message, }); } else if (err instanceof Error) {