branch: improve error message for missing --set-upstream-to ref