Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions autoload/dutyl/dub.vim
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function! s:functions.importPaths() dict abort
endfor
endfor
catch /.*/
echo "Can not get dub project import path!"
echo "Can not get dub project import path! " . v:exception
endtry

let self.cache.dub.importPaths = dutyl#util#normalizePaths(l:result)
Expand All @@ -67,9 +67,9 @@ endfunction
"Calls 'dub describe' and turns the result to Vim's data types
function! s:dubDescribe() abort
let l:result=dutyl#util#runInDirectory(s:functions.projectRoot(),
\function('dutyl#core#runTool'),'dub',['describe','--annotate', '--vquiet'])
\function('dutyl#core#runTool'),'dub',['describe','--annotate', '--verror'])
if !empty(dutyl#core#shellReturnCode())
throw 'Failed to execute `dub describe`'
throw 'Failed to execute `dub describe --annotate`: ' . l:result
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this concatenation be problematic? I'm no vim expert..
What if l:result has multiple lines?

endif

"If package.json instead of dub.json or visa versa, dub will sometimes
Expand Down