summaryrefslogtreecommitdiffstats
path: root/runtime/colors/tools/check_colors.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/colors/tools/check_colors.vim')
-rw-r--r--runtime/colors/tools/check_colors.vim14
1 files changed, 10 insertions, 4 deletions
diff --git a/runtime/colors/tools/check_colors.vim b/runtime/colors/tools/check_colors.vim
index b0146cc677..0d8936042e 100644
--- a/runtime/colors/tools/check_colors.vim
+++ b/runtime/colors/tools/check_colors.vim
@@ -226,7 +226,13 @@ fu! Result(err)
endif
endfu
-call Test_check_colors()
-
-let &cpo = s:save_cpo
-unlet s:save_cpo
+try
+ call Test_check_colors()
+catch
+ echohl ErrorMsg
+ echomsg v:exception
+ echohl NONE
+finally
+ let &cpo = s:save_cpo
+ unlet s:save_cpo
+endtry