improve #to_s for upload/download errors