aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-02-25 15:57:18 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2015-02-25 15:57:18 -0800
commit226a11deea595aed4c4bbfd4aeec285923867e0f (patch)
tree1c6de4a372466fc81dd9e26f7924f6bed1d28612
parentImprove error handling. (diff)
downloadbackend-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-xag6
1 files 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,