don't print error and backtrace in non-dev modes