diff options
author | 2015-02-25 15:57:18 -0800 | |
---|---|---|
committer | 2015-02-25 15:57:18 -0800 | |
commit | 226a11deea595aed4c4bbfd4aeec285923867e0f (patch) | |
tree | 1c6de4a372466fc81dd9e26f7924f6bed1d28612 | |
parent | Improve error handling. (diff) | |
download | backend-226a11deea595aed4c4bbfd4aeec285923867e0f.tar.gz backend-226a11deea595aed4c4bbfd4aeec285923867e0f.tar.bz2 backend-226a11deea595aed4c4bbfd4aeec285923867e0f.zip |
Always raise problems from create/delete if calling from maildir indexing calls.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-x | ag | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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, |