return proper error messages and codes for our buildbot and other scripts