Closed faisaltheparttimecoder closed 4 years ago
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/173762724
The labels on this github issue will be updated when the story is started.
Hey @faisaltheparttimecoder this pull request got closed accidentally because we replaced our master branch with a main branch. Would you be able to open the pull request to our main branch?
or you could edit the base branch to be main and reopen
Hello @tomkennedy513 ,
Sure that should not be a problem, here is a new pull request https://github.com/cloudfoundry-incubator/credhub-cli/pull/101 on the main branch.
Thanks
The credhub debug panics when the response is
nil
, this is due to the position of the dumpResponse i.e earlier when the API request response has an error, the sequence says to dump the response first which is invalid (since the response is nil or doesn't have any memory address)This patch changes the order i.e to return the error if there is a error and dump if there is no error. Also added a debug line to print the error for easier debug since the service broker store completely looses the error inflight making it harder to debug