Skip to content

Commit

Permalink
ENH: Improve reporting of errors in template files
Browse files Browse the repository at this point in the history
They can be expanded with `:Warnings`
  • Loading branch information
LucHermitte committed Nov 26, 2024
1 parent a741db7 commit 9da0bfa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Flavorfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
flavor 'LucHermitte/lh-vim-lib', '>= 5.3.1'
flavor 'LucHermitte/lh-vim-lib', '>= 5.4.0'
flavor 'LucHermitte/lh-brackets', '>= 3.6.0'
flavor 'LucHermitte/lh-style', '>= 0.9.3'
4 changes: 2 additions & 2 deletions autoload/lh/mut.vim
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
" Version: 4.4.3
let s:k_version = 443
" Created: 05th Jan 2011
" Last Update: 03rd Oct 2024
" Last Update: 27th Nov 2024
"------------------------------------------------------------------------
" Description:
" mu-template internal functions
Expand Down Expand Up @@ -1090,7 +1090,7 @@ function! s:InterpretCommand(what) abort
endif " != :function
endif
catch /.*/
call lh#common#warning_msg("muTemplate: Cannot execute `".a:what."': ".v:exception.' ('.v:throwpoint.')')
call lh#warning#emit("muTemplate: Cannot execute `".a:what."': ".v:exception, v:throwpoint)
throw "muTemplate: Cannot execute `".a:what."': ".v:exception.' ('.v:throwpoint.')'
endtry
endfunction
Expand Down

0 comments on commit 9da0bfa

Please sign in to comment.