Update ModelsCommand.php (#862)

Improve Error Reporting for easy debugging
This commit is contained in:
Johannes Rudolph
2020-01-05 11:53:34 +01:00
committed by Barry vd. Heuvel
parent c0bb9ee1fd
commit 805c4e9a2a
+1 -1
View File
@@ -230,7 +230,7 @@ class ModelsCommand extends Command
$ignore[] = $name; $ignore[] = $name;
$this->nullableColumns = []; $this->nullableColumns = [];
} catch (\Throwable $e) { } 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());
} }
} }
} }