mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-13 01:08:41 -09:00
dir_import.c: Don't throw an error when user aborted import
This commit is contained in:
parent
7d2cb84e70
commit
37f390d241
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue