From 1770a77bca32a852892292406407ae52a0e29992 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 1 Feb 2019 19:46:54 -0500 Subject: Clean up return value of deno_execute and deno_respond --- libdeno/snapshot_creator.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libdeno/snapshot_creator.cc') diff --git a/libdeno/snapshot_creator.cc b/libdeno/snapshot_creator.cc index d38b6c075..ceafe0fd7 100644 --- a/libdeno/snapshot_creator.cc +++ b/libdeno/snapshot_creator.cc @@ -26,8 +26,8 @@ int main(int argc, char** argv) { deno_config config = {1, deno::empty_buf, deno::empty_buf, nullptr}; Deno* d = deno_new(config); - int r = deno_execute(d, nullptr, js_fn, js_source.c_str()); - if (!r) { + deno_execute(d, nullptr, js_fn, js_source.c_str()); + if (deno_last_exception(d) != nullptr) { std::cerr << "Snapshot Exception " << std::endl; std::cerr << deno_last_exception(d) << std::endl; deno_delete(d); -- cgit v1.2.3