package cnb import ( "cnb.cool/cnb/go-cnb/cnb" "cnb.cool/looc/git-cnb/ui" "net/http" "os" ) func handleHttpResponse(rsp *cnb.Response) { if rsp.StatusCode == http.StatusUnauthorized { ui.Error("you have no permission to this repo, please set correct CNB_TOKEN! ") os.Exit(0) } }