diff autoload/lawrencium/record.vim @ 141:4d5f4233b04e

Only set `v:errmsg` for real errors, not exceptions.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 07 Dec 2016 21:33:18 -0800
parents 652a6f5df0f3
children
line wrap: on
line diff
--- a/autoload/lawrencium/record.vim	Mon Jun 13 21:55:40 2016 -0700
+++ b/autoload/lawrencium/record.vim	Wed Dec 07 21:33:18 2016 -0800
@@ -70,7 +70,7 @@
     endif
 
     if !exists('b:lawrencium_record_for')
-        call lawrencium#throw("This doesn't seem like a record buffer, something's wrong!")
+        call lawrencium#throwerr("This doesn't seem like a record buffer, something's wrong!")
     endif
     if b:lawrencium_record_for == '%'
         " Switch to the 'recording' buffer's window.
@@ -149,7 +149,7 @@
     let l:buf_obj = lawrencium#buffer_obj(a:buf_nr)
     call l:buf_obj.MoveToFirstWindow()
     if !exists('b:lawrencium_record_for') || b:lawrencium_record_for != '%'
-        call lawrencium#throw("Cleaning up something else than the original buffer ".
+        call lawrencium#throwerr("Cleaning up something else than the original buffer ".
                 \"for a record operation. That's suspiciously incorrect! ".
                 \"Aborting.")
     endif