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

Errors thrown when not a member of a site #30

Closed
ari-gold opened this issue Dec 1, 2014 · 1 comment
Closed

Errors thrown when not a member of a site #30

ari-gold opened this issue Dec 1, 2014 · 1 comment

Comments

@ari-gold
Copy link
Contributor

ari-gold commented Dec 1, 2014

e.g.

$ terminus wp db query --site=site_I_am_not_a_team_member_of --env=live < show-tables.sql

Fatal error: Uncaught exception 'Exception' with message 'No site exists with this name' in phar:///usr/local/bin/terminus/php/Terminus/SiteFactory.php:46
Stack trace:
#0 phar:///usr/local/bin/terminus/php/Terminus/SiteFactory.php(38): Terminus\SiteFactory->getSite('site_I_am_not_a...')
#1 phar:///usr/local/bin/terminus/php/commands/wp.php(36): Terminus\SiteFactory::instance('site_I_am_not_a...')
#2 [internal function]: WPCLI_Command->__invoke(Array, Array)
#3 phar:///usr/local/bin/terminus/php/Terminus/Dispatcher/CommandFactory.php(35): call_user_func(Array, Array, Array)
#4 [internal function]: Terminus\Dispatcher\CommandFactory::Terminus\Dispatcher{closure}(Array, Array)
#5 phar:///usr/local/bin/terminus/php/Terminus/Dispatcher/Subcommand.php(220): call_user_func(Object(Closure), Array, Array)
#6 phar:///usr/local/bin/terminus/php/Terminus/Runner.php(68): Terminus\Dispatcher\Subcommand->invoke(Array, Array, Array)
#7 phar:///usr/local/bin/terminus/php/Terminus/Runner.php(75): Terminus\Runner->run_command(Array, Array) in phar:///usr/local/bin/terminus/php/Terminus/SiteFactory.php on line 46

@mikevanwinkle
Copy link
Contributor

Thanks for reporting. It's sort of fixed in 0.0.6-alpha in that the exception info is prettied up ... but I need to make a change to have it only show in cases if --debug is set.

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

2 participants