1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:27:35 +00:00

Shell: Improve error propagation

This commit replaces 31 release_value_but_fixme_should_propagate_errors
calls with TRYs. :^)
This commit is contained in:
Adam Harald Jørgensen 2023-11-13 01:14:59 +01:00 committed by Ali Mohammad Pur
parent e89ba794d0
commit e2f9011a8d
4 changed files with 40 additions and 45 deletions

View file

@ -182,7 +182,7 @@ public:
DeprecatedString prompt() const;
static DeprecatedString expand_tilde(StringView expression);
static Vector<DeprecatedString> expand_globs(StringView path, StringView base);
static ErrorOr<Vector<DeprecatedString>> expand_globs(StringView path, StringView base);
static Vector<DeprecatedString> expand_globs(Vector<StringView> path_segments, StringView base);
ErrorOr<Vector<AST::Command>> expand_aliases(Vector<AST::Command>);
DeprecatedString resolve_path(DeprecatedString) const;