aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/terminalhooks.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2025-04-15 10:23:32 +0200
committerhjk <[email protected]>2025-04-15 08:46:45 +0000
commitae0e846eababd159536532ab14f878544f6369e2 (patch)
treed96a7b038c52c4baad9af9b07532578fa13eab06 /src/libs/utils/terminalhooks.cpp
parent8f542758278438defa1b0c582a8e8b7990626a5c (diff)
Replace a few make_unexpected with ResultError
Change-Id: I64637b8b43c1932dee59e37b8922c18d27c2deb9 Reviewed-by: Jarek Kobus <[email protected]>
Diffstat (limited to 'src/libs/utils/terminalhooks.cpp')
-rw-r--r--src/libs/utils/terminalhooks.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/utils/terminalhooks.cpp b/src/libs/utils/terminalhooks.cpp
index ae6a45bfa95..b98ee01f929 100644
--- a/src/libs/utils/terminalhooks.cpp
+++ b/src/libs/utils/terminalhooks.cpp
@@ -19,7 +19,7 @@ Result<FilePath> defaultShellForDevice(const FilePath &deviceRoot)
const Result<Environment> env = deviceRoot.deviceEnvironmentWithError();
if (!env)
- return make_unexpected(env.error());
+ return ResultError(env.error());
FilePath shell = FilePath::fromUserInput(env->value_or("SHELL", "/bin/sh"));
@@ -27,7 +27,7 @@ Result<FilePath> defaultShellForDevice(const FilePath &deviceRoot)
shell = env->searchInPath(shell.nativePath());
if (shell.isEmpty())
- return make_unexpected(Tr::tr("Could not find any shell."));
+ return ResultError(Tr::tr("Could not find any shell."));
return deviceRoot.withNewMappedPath(shell);
}