up icon indicating copy to clipboard operation
up copied to clipboard

Add nicer error for Pro commands such as `up deploys` in the OSS version

Open tonyxiao opened this issue 6 years ago • 2 comments

Prerequisites

  • [x] I am running the latest version. (up upgrade)
  • [x] I searched to see if the issue already exists.
  • [x] I inspected the verbose debug output with the -v, --verbose flag.
  • [ ] Are you an Up Pro subscriber?
$ up deploys
     Error: "deploys" is invalid, must be one of:

  • production
  • staging

Then I tried

$ up deploys staging                                                                                                                                                   
     Error: unexpected staging

According to the docs, this should work. Am I missing something really obvious?

tonyxiao avatar Nov 28 '18 21:11 tonyxiao

Ah sorry up deploys, up rollback, and up env are all Pro commands, but I'll add a nicer message to make that obvious!

tj avatar Nov 28 '18 22:11 tj

Ah, that'd be super helpful for newbies. Thanks @tj

tonyxiao avatar Dec 01 '18 00:12 tonyxiao