Nevon / express-physical

Healthcheck middleware for Express 🌡

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve output when healthcheck responses are created with invalid parameters

Nevon opened this issue · comments

throw new Error("Invalid input for HealthCheckResponse", responseData);

The validations should be output in some structured way that informs the user of how to fix the error.

Rather than brewing custom validation handling, look into using https://github.com/25th-floor/spected or something like it