fixing an error prompt on git related prompt part