commit: 226a11deea595aed4c4bbfd4aeec285923867e0f Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> AuthorDate: Wed Feb 25 23:57:18 2015 +0000 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> CommitDate: Wed Feb 25 23:57:18 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/ag.git;a=commit;h=226a11de
Always raise problems from create/delete if calling from maildir indexing calls. Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> --- ag | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ag b/ag index 5602df5..c220b9d 100755 --- a/ag +++ b/ag @@ -154,8 +154,8 @@ Ag::Utils.proc_count = $options.jobs def do_full abort "Wrong argument type: #{$options.argmode.to_s}" unless $options.argmode == :dir - do_delete_index(ignore_missing: true) unless $options.readonly - do_create_index(ignore_exists: true) + do_delete_index(ignore_missing: true, _raise: true) unless $options.readonly + do_create_index(ignore_exists: true, _raise: true) messages = $maildir.list(:cur) @@ -180,7 +180,7 @@ end def do_incremental abort "Wrong argument type: #{$options.argmode.to_s}" unless $options.argmode == :dir messages = $maildir.list(:new) - do_create_index(ignore_exists: true) + do_create_index(ignore_exists: true, _raise: true) opts = { :in_processes => Ag::Utils.proc_count,