Skip to content

Commit efae6d4

Browse files
authored
fix: improve error message when query columns are empty (#7342)
1 parent d537bd7 commit efae6d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/ModelCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ protected function createModel(string $table, ModelOption $option): void
161161
$columns = $this->formatColumns($builder->getColumnTypeListing($pureTable, $databaseName));
162162
if (empty($columns)) {
163163
$this->output?->error(
164-
sprintf('Query columns empty, maybe is table `%s` does not exist.You can check it in database.', $table)
164+
sprintf('Query columns are empty, maybe the table `%s` does not exist. You can check it in the database.', $table)
165165
);
166166
}
167167

0 commit comments

Comments
 (0)