Improve error on piggieback failure

References #167.
This commit is contained in:
Tim Pope 2015-09-22 14:28:33 -04:00
parent 3d9b9a59cd
commit 04a7f542f5

View File

@ -628,7 +628,7 @@ function! fireplace#client(...) abort
if empty(client.piggiebacks) if empty(client.piggiebacks)
let result = client.piggieback('') let result = client.piggieback('')
if has_key(result, 'ex') if has_key(result, 'ex')
return result throw 'Fireplace: '.result.ex
endif endif
endif endif
return client.piggiebacks[0] return client.piggiebacks[0]