report errors cleanly