Commit a8d5040
authored
fix(cli): gracefully handle missing vp fmt during config initialization (#789)
The `vpFmt` function now gracefully handles cases where `vp fmt` is not available or fails to execute. Instead of throwing an error when formatting fails, it now shows a warning message and continues execution. Additionally, the entire formatting operation is wrapped in a try-catch block to handle cases where `vp fmt` is not yet installed (such as during migration processes), allowing the operation to proceed without formatting rather than failing completely.1 parent 25b23d8 commit a8d5040
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
0 commit comments