ENH: print meaningful message instead of crashing when auth details are invalid.