Skip to content

Commit

Permalink
[FIX] Error message redirector
Browse files Browse the repository at this point in the history
  • Loading branch information
Dvaking committed May 10, 2023
1 parent ec0c7f2 commit 15e2f79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/error_handing/error_message_for_redirector.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@

int error_message_redirector(args_s_t *args)
{
if (args->multiple == 1){
if (write(2, "Ambiguous output redirect.\n", 27) == -1)
if (args->after != 1){
if (write(2, "Missing name for redirect.\n", 27) == -1)
return 1;
return 1;
}
if (args->after != 1){
if (write(2, "Missing name for redirect.\n", 27) == -1)
if (args->multiple == 1){
if (write(2, "Ambiguous output redirect.\n", 27) == -1)
return 1;
return 1;
}
Expand Down

0 comments on commit 15e2f79

Please sign in to comment.