Actually, I think this will output:

```foo: foo.c:7: main: Assertion `0 && error' failed.```

Maybe you can `fprintf(stderr, <errmsg>);` or something, before letting it blow up with `assert(0)`?