Fail gracefully on 'deploy' outside of project folder
- Dominant language
- Python
- Stars
- 11.1k
- Forks
- 1k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 2
Description
**Repro:**
1. `chalice new-project helloworld`
2. `chalice deploy`
**Expected:** User friendly error message that the config isn't found like, "Error: Can't find chalice config. Are you in a chalice project folder?"
**Actual:** RuntimeError with stack trace occurs
It's confusing and frightening first time using.

Contributor guide
Research direction
Start by reproducing `chalice new-project helloworld` followed by `chalice deploy` outside the project folder, then trace the deploy command's missing-config handling. Done means the command reports that the Chalice config cannot be found and suggests using a Chalice project folder, without emitting a RuntimeError stack trace.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100