console.err() would probably be better.
I'll investigate exceptions.