Skip to content

Commit

Permalink
Merge pull request #2600 from MRtrix3/output_pipe_error_message
Browse files Browse the repository at this point in the history
Pipe image format: Revise error message
  • Loading branch information
Lestropie authored Sep 16, 2024
2 parents 7935966 + b0c66b5 commit fb66ec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/formats/pipe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ namespace MR
return false;

if (isatty (STDOUT_FILENO))
throw Exception ("attempt to pipe image to standard output (this will leave temporary files behind)");
throw Exception ("cannot create output piped image: no command connected at other end of pipe to receive that image");

H.name() = File::create_tempfile (0, "mif");

Expand Down

0 comments on commit fb66ec3

Please sign in to comment.