printing errors to stdout