update-ref --stdin: make error messages more consistent