about summary refs log tree commit diff stats
path: root/subx/028translate.cc
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-09-30 09:42:32 -0700
committerKartik Agaram <vc@akkartik.com>2018-09-30 09:42:32 -0700
commita988da657cb3caa46ceee62fe6abd60f02002ce1 (patch)
treee403cbaa20a6bbec3e07adfc31ac23c614650b55 /subx/028translate.cc
parent2ec6d1e5250e5a36c919354649c3bc3f17261140 (diff)
downloadmu-a988da657cb3caa46ceee62fe6abd60f02002ce1.tar.gz
4620
Diffstat (limited to 'subx/028translate.cc')
-rw-r--r--subx/028translate.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/subx/028translate.cc b/subx/028translate.cc
index f2db1bbc..174a863a 100644
--- a/subx/028translate.cc
+++ b/subx/028translate.cc
@@ -32,7 +32,10 @@ if (is_equal(argv[1], "translate")) {
   transform(p);
   if (trace_contains_errors()) return 1;
   save_elf(p, argv[3]);
-  if (trace_contains_errors()) unlink(argv[3]);
+  if (trace_contains_errors()) {
+    unlink(argv[3]);
+    return 1;
+  }
   return 0;
 }