summaryrefslogtreecommitdiff
path: root/Tests/LibWasm/test-wasm.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-08-20 11:16:42 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-20 15:31:46 +0200
commit13f4890c38c9f7f7d6e936d56de550a36916eec2 (patch)
tree69d94dc0c75984072623a0da09b7637027d7bcb9 /Tests/LibWasm/test-wasm.cpp
parent1474a537b630ef1b6b638164bca9043f0622d617 (diff)
downloadserenity-13f4890c38c9f7f7d6e936d56de550a36916eec2.zip
LibCore: Make Core::File::open() return OSError in case of failure
Diffstat (limited to 'Tests/LibWasm/test-wasm.cpp')
-rw-r--r--Tests/LibWasm/test-wasm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/LibWasm/test-wasm.cpp b/Tests/LibWasm/test-wasm.cpp
index d0b16d7d70..4fe48f67e9 100644
--- a/Tests/LibWasm/test-wasm.cpp
+++ b/Tests/LibWasm/test-wasm.cpp
@@ -18,7 +18,7 @@ TESTJS_GLOBAL_FUNCTION(read_binary_wasm_file, readBinaryWasmFile)
return {};
auto file = Core::File::open(filename, Core::OpenMode::ReadOnly);
if (file.is_error()) {
- vm.throw_exception<JS::TypeError>(global_object, file.error());
+ vm.throw_exception<JS::TypeError>(global_object, file.error().string());
return {};
}
auto contents = file.value()->read_all();