summaryrefslogtreecommitdiff
path: root/Userland/Shell/Shell.cpp
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2023-02-16 09:50:14 +0330
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2023-02-18 06:55:46 +0330
commit4efc632e159f2bc27e989de7a0fdea965296649f (patch)
tree799be235fecde52881b09a943cd6793d5abc637a /Userland/Shell/Shell.cpp
parent9c61fed37cdbec8ac4f7aa25d46a982a39f8f5a8 (diff)
downloadserenity-4efc632e159f2bc27e989de7a0fdea965296649f.zip
Shell: Allow the heredoc node to act as a redirection too
This will be used in a future commit to implement POSIX sh heredocs.
Diffstat (limited to 'Userland/Shell/Shell.cpp')
-rw-r--r--Userland/Shell/Shell.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Shell/Shell.cpp b/Userland/Shell/Shell.cpp
index 23e79128b9..2a2512427a 100644
--- a/Userland/Shell/Shell.cpp
+++ b/Userland/Shell/Shell.cpp
@@ -2352,6 +2352,12 @@ void Shell::possibly_print_error() const
case ShellError::LaunchError:
warnln("Shell: {}", m_error_description);
break;
+ case ShellError::PipeFailure:
+ warnln("Shell: pipe() failed for {}", m_error_description);
+ break;
+ case ShellError::WriteFailure:
+ warnln("Shell: write() failed for {}", m_error_description);
+ break;
case ShellError::InternalControlFlowBreak:
case ShellError::InternalControlFlowContinue:
case ShellError::InternalControlFlowInterrupted: