diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index a62b73c89ed0..0d34120a66f5 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -17,7 +17,6 @@ use App\Utils\Ninja; use Sentry\State\Scope; use Illuminate\Support\Arr; use Illuminate\Http\Request; -use Illuminate\Http\Response; use Sentry\Laravel\Integration; use Illuminate\Support\Facades\Schema; use GuzzleHttp\Exception\ConnectException; @@ -35,21 +34,22 @@ use Symfony\Component\Console\Exception\CommandNotFoundException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException; use Illuminate\Database\Eloquent\ModelNotFoundException as ModelNotFoundException; +use InvalidArgumentException; class Handler extends ExceptionHandler { /** * A list of the exception types that are not reported. * - * @var array + * @var array> */ protected $dontReport = [ // PDOException::class, - // MaxAttemptsExceededException::class, - // CommandNotFoundException::class, - // ValidationException::class, + MaxAttemptsExceededException::class, + CommandNotFoundException::class, + ValidationException::class, // ModelNotFoundException::class, - // NotFoundHttpException::class, + NotFoundHttpException::class, ]; protected $selfHostDontReport = [