Fix error display with git operations