diff options
Diffstat (limited to 'src/cmd/gc/obj.c')
-rw-r--r-- | src/cmd/gc/obj.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cmd/gc/obj.c b/src/cmd/gc/obj.c index 12054645f..97786cd6e 100644 --- a/src/cmd/gc/obj.c +++ b/src/cmd/gc/obj.c @@ -12,8 +12,11 @@ void dumpobj(void) { bout = Bopen(outfile, OWRITE); - if(bout == nil) - fatal("cant open %s", outfile); + if(bout == nil) { + flusherrors(); + print("can't create %s: %r\n", outfile); + errorexit(); + } Bprint(bout, "%s\n", thestring); Bprint(bout, " exports automatically generated from\n"); |