improve error message for push

fixes GH-2201