]> BookStack Code Mirror - bookstack/blobdiff - app/Exceptions/Handler.php
Fix timestamp in API docs example response
[bookstack] / app / Exceptions / Handler.php
index 9667944d4a4e330fe9621b9d042061f679653478..f2672cf5778a11e13046be41ca99a65a66ca2ae3 100644 (file)
@@ -98,6 +98,7 @@ class Handler extends ExceptionHandler
         ];
 
         if ($e instanceof ValidationException) {
+            $responseData['error']['message'] = 'The given data was invalid.';
             $responseData['error']['validation'] = $e->errors();
             $code = $e->status;
         }