summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2025-11-07 13:56:45 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2025-11-07 13:56:45 +0100
commit13cb3114b55138de29957b0687fadbda79249ee1 (patch)
treec6358d150115f6608d3d2a7f2312c68ad564af56 /modules
parent04ba3da391c606710fe362ec027f764705e539aa (diff)
downloadforstio-forstio-13cb3114b55138de29957b0687fadbda79249ee1.tar.gz
Fixing to proper error return
Diffstat (limited to 'modules')
-rw-r--r--modules/remote-filesystem/c++/easy.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/remote-filesystem/c++/easy.hpp b/modules/remote-filesystem/c++/easy.hpp
index 25444f2..19e70b4 100644
--- a/modules/remote-filesystem/c++/easy.hpp
+++ b/modules/remote-filesystem/c++/easy.hpp
@@ -59,7 +59,7 @@ error_or<data<Sch,Enc>> read_and_decode_file(const std::filesystem::path& p_){
auto eo_read = srv->receive(fid);
if(eo_read.is_error()){
- return eo_read;
+ return std::move(eo_read.get_error());
}
auto& read = eo_read.get_value();