summaryrefslogtreecommitdiff
path: root/libdeno/snapshot_creator.cc
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-02-01 19:46:54 -0500
committerRyan Dahl <ry@tinyclouds.org>2019-02-02 16:46:31 -0500
commit1770a77bca32a852892292406407ae52a0e29992 (patch)
tree2bcb94c50957e822b3200749f3a2396533c84efd /libdeno/snapshot_creator.cc
parent0b082c4361c63768e5b8610cb22ad7c79e9214aa (diff)
Clean up return value of deno_execute
and deno_respond
Diffstat (limited to 'libdeno/snapshot_creator.cc')
-rw-r--r--libdeno/snapshot_creator.cc4
1 files changed, 2 insertions, 2 deletions
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);