improve error messages when marks dont exist

This commit is contained in:
Martin Grenfell 2008-06-07 10:12:37 +12:00
parent a537e1535c
commit 5a4ef66db2

View File

@ -2821,7 +2821,7 @@ function! s:OpenMark(name)
try
let mark = s:GetMarks()[a:name]
catch /E716/ "key not in dictionary error
call s:Echo("Invalid mark name")
call s:Echo("Mark doesnt exist")
return
endtry
@ -2890,7 +2890,7 @@ function! s:RecallMark(name)
try
let mark = s:GetMarks()[a:name]
catch /E716/ "key not in dictionary error
call s:Echo("Invalid mark name")
call s:Echo("Mark doesnt exist")
return
endtry