summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-07-05 17:33:20 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-07-06 12:22:11 -0400
commit21e1425656ccebb8d31da95acd83991fb7d728fd (patch)
tree23be07136bff0e17926edcf06e2ae46ddf784daa /src/main.cc
parent41328d796e440dd52198c8f30111419cbec81d6b (diff)
Better c++ error handling
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc
index 1f3b4cad8..0a6d76d34 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -57,7 +57,7 @@ int main(int argc, char** argv) {
Deno* d = deno_new(NULL, MessagesFromJS);
bool r = deno_execute(d, "deno_main.js", "denoMain();");
if (!r) {
- printf("Error! %s\n", deno_last_exception(d));
+ printf("%s\n", deno_last_exception(d));
exit(1);
}
deno_delete(d);