Programming Hack: prettier error handling