Repository navigation
Commit 3990069
fix: include exception message in import error output
WP_CLI::error() exits the process immediately, so the subsequent
echo $e->getMessage() line was dead code that never executed.
This meant the actual SQL error details were never shown to users.
Now includes the exception message in the WP_CLI::error() call
so users can see what specifically went wrong (e.g., "syntax error near X").
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent fcc0898 commit 3990069
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
| 87 | + | |
89 | 88 | | |
90 | 89 | | |
91 | 90 | | |
| |||
0 commit comments