Commit 9bf2a62
committed
Expand error message upon -style arg parse error
When the user adds invalid arguments to the -style switch of
clang-format, the error message may yield different responses depending
on the type of failure.
Expand error message given to the user to not only be verbose on 'key'
errors.
An example:
let g:clang_format#style_options = { "Standard" : "go" }
Will result in:
Error detected while processing function clang_format#replace[6]..<SNR>77_error_message:
line 1:
clang-format has failed to format.
YAML:1:63: error: unknown enumerated scalar
{BasedOnStyle: LLVM, IndentWidth: 4, UseTab: false, Standard: 'go'}
^~~~
Error parsing -style: Invalid argument1 parent c1d68a8 commit 9bf2a62
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
0 commit comments