Update app.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Juan Calderon-Perez 2025-05-20 23:39:02 -04:00 committed by GitHub
parent 9b91945459
commit 6abd9c9ea6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

2
app.go
View File

@ -883,6 +883,8 @@ func (e *Error) Error() string {
// NewError creates a new Error instance with an optional message.
// Additional arguments are formatted using fmt.Sprintf when provided.
// If the first argument in the message slice is not a string, the function
// falls back to using fmt.Sprint on the first element to generate the message.
func NewError(code int, message ...any) *Error {
msg := utils.StatusMessage(code)