Skip to content
Snippets Groups Projects
Commit 37f390d2 authored by Yorhel's avatar Yorhel
Browse files

dir_import.c: Don't throw an error when user aborted import

parent 7d2cb84e
No related branches found
No related tags found
No related merge requests found
...@@ -568,10 +568,10 @@ static int process() { ...@@ -568,10 +568,10 @@ static int process() {
if(!dir_fatalerr) if(!dir_fatalerr)
fail = item(0); fail = item(0);
if(!dir_fatalerr) if(!dir_fatalerr && !fail)
footer(); footer();
if(fclose(ctx->stream) && !dir_fatalerr) if(fclose(ctx->stream) && !dir_fatalerr && !fail)
dir_seterr("Error closing file: %s", strerror(errno)); dir_seterr("Error closing file: %s", strerror(errno));
free(ctx); free(ctx);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment