diff options
author | Yorhel <git@yorhel.nl> | 2012-09-06 09:47:00 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2012-09-06 09:47:00 +0200 |
commit | 37f390d24177e42f204b628fbd515de77f2f7275 (patch) | |
tree | c3851bfa1e7abb7923c75d644fb54f44224e1a67 /src | |
parent | 7d2cb84e707fdfffee9f99531990735e890558b5 (diff) |
dir_import.c: Don't throw an error when user aborted import
Diffstat (limited to 'src')
-rw-r--r-- | src/dir_import.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dir_import.c b/src/dir_import.c index a7e93d5..872ff6d 100644 --- a/src/dir_import.c +++ b/src/dir_import.c @@ -568,10 +568,10 @@ static int process() { if(!dir_fatalerr) fail = item(0); - if(!dir_fatalerr) + if(!dir_fatalerr && !fail) footer(); - if(fclose(ctx->stream) && !dir_fatalerr) + if(fclose(ctx->stream) && !dir_fatalerr && !fail) dir_seterr("Error closing file: %s", strerror(errno)); free(ctx); |