ref: 417f0a16689949f856017623247835f1b7d8f335
parent: 5bd859be6d2246db8a5ce28f2dbc25724590cb6f
author: andrewc <andrewchamberss@gmail.com>
date: Mon Feb 15 08:52:13 EST 2016
make std.fatal print to std.Err
--- a/lib/std/fmt.myr
+++ b/lib/std/fmt.myr
@@ -1,4 +1,5 @@
use "alloc"
+use "consts"
use "chartype"
use "die"
use "extremum"
@@ -65,13 +66,13 @@
var ap
ap = vastart(&args)
- putv(fmt, &ap)
+ fputv(Err, fmt, &ap)
exit(1)
}
/* same as 'putv', but exits the program after printing */
const fatalv = {fmt, ap
- putv(fmt, ap)
+ fputv(Err, fmt, ap)
exit(1)
}