BUG: Make error message print to stderr