mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00:00
Shell: Make AST::dump() ErrorOr-aware
This commit is contained in:
parent
beeb58bd93
commit
d575c50f3e
4 changed files with 321 additions and 267 deletions
|
@ -43,7 +43,7 @@ int Shell::builtin_dump(int argc, char const** argv)
|
|||
if (!parser.parse(argc, const_cast<char**>(argv), Core::ArgsParser::FailureBehavior::PrintUsage))
|
||||
return 1;
|
||||
|
||||
(posix ? Posix::Parser { source }.parse() : Parser { source }.parse())->dump(0);
|
||||
(void)(posix ? Posix::Parser { source }.parse() : Parser { source }.parse())->dump(0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue