Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError from pg:backups:capture when api request fails while using verbose flag #1294

Open
johndalton opened this issue Aug 12, 2019 · 0 comments

Comments

@johndalton
Copy link

What is the current behavior?

Attempt to run pg:backups:capture against a service that you don't have necessary permissions on, while using the -v (verbose) flag.

This results in an error like the following:

Backing up DATABASE to b016...
 ▸    Cannot read property 'logs' of undefined

What is the expected behavior?

We shouldn't try to access an invalid response object. We should display an accurate message about the cause of the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant