aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/builtins/unpack-channel.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-09-11 01:15:20 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-11-26 22:07:28 +0100
commitf738cd4d976f4f72159bbcbfa7b451c33f0ea74a (patch)
tree2c20a500f84c967aec1f74bca4d2383c673e1b62 /src/libstore/builtins/unpack-channel.cc
parent8110b4ebb29174ecd4b22510da0285abf604b8a7 (diff)
More Rust FFI adventures
We can now convert Rust Errors to C++ exceptions. At the Rust->C++ FFI boundary, Result<T, Error> will cause Error to be converted to and thrown as a C++ exception.
Diffstat (limited to 'src/libstore/builtins/unpack-channel.cc')
-rw-r--r--src/libstore/builtins/unpack-channel.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/builtins/unpack-channel.cc b/src/libstore/builtins/unpack-channel.cc
index 88202ec6b..2da26d98e 100644
--- a/src/libstore/builtins/unpack-channel.cc
+++ b/src/libstore/builtins/unpack-channel.cc
@@ -27,7 +27,7 @@ void builtinUnpackChannel(const BasicDerivation & drv)
decompressor->finish();
});
- unpack_tarfile(*source, out);
+ unpack_tarfile(*source, out).use()->unwrap();
auto entries = readDirectory(out);
if (entries.size() != 1)