diff options
| author | djcb <djcb@localhost.localdomain> | 2012-01-22 10:25:12 +0200 |
|---|---|---|
| committer | djcb <djcb@localhost.localdomain> | 2012-01-22 10:25:12 +0200 |
| commit | 0c34661d6d247908b8b131a8d89c4a323f82f8d2 (patch) | |
| tree | 36673c5b978e730d29dd363f4c818c87551dccdf | |
| parent | db83313db0bfdd6d316c1a2d986efa3cdc983ebb (diff) | |
* mu_index: fix error handlingv0.9.8-beta2
| -rw-r--r-- | src/mu-cmd-index.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/mu-cmd-index.c b/src/mu-cmd-index.c index 0c33bdd..2b38f4c 100644 --- a/src/mu-cmd-index.c +++ b/src/mu-cmd-index.c @@ -332,17 +332,14 @@ cmd_index (MuIndex *midx, MuConfig *opts, MuIndexStats *stats, stats->_processed, !opts->nocolor); } - if (rv == MU_OK || rv == MU_STOP) + if (rv == MU_OK || rv == MU_STOP) { MU_WRITE_LOG ("index: processed: %u; updated/new: %u", stats->_processed, stats->_updated); - - if (rv == MU_OK && !opts->nocleanup) - rv = cleanup_missing (midx, opts, stats, show_progress, err); - - if (rv == MU_STOP) - rv = MU_OK; - - if (rv != MU_OK && !err) + if (rv == MU_OK && !opts->nocleanup) + rv = cleanup_missing (midx, opts, stats, show_progress, err); + if (rv == MU_STOP) + rv = MU_OK; + } else g_set_error (err, 0, rv, "error while indexing"); return rv; |
