From 805c4e9a2a26b7a32cb49e9fe35a11bc1b68dd73 Mon Sep 17 00:00:00 2001 From: Johannes Rudolph Date: Sun, 5 Jan 2020 11:53:34 +0100 Subject: [PATCH] Update ModelsCommand.php (#862) Improve Error Reporting for easy debugging --- src/Console/ModelsCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index b52aeb5..ca2bfb8 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -230,7 +230,7 @@ class ModelsCommand extends Command $ignore[] = $name; $this->nullableColumns = []; } catch (\Throwable $e) { - $this->error("Exception: " . $e->getMessage() . "\nCould not analyze class $name."); + $this->error("Exception: " . $e->getMessage() . "\nCould not analyze class $name.\n\nTrace:\n".$e->getTraceAsString()); } } }