aws / aws/chalice

Fail gracefully on 'deploy' outside of project folder

Open
#1,083 1 comment 0 reactions 0 assignees View on GitHub
confusing-error enhancement
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.

![image](https://user-images.githubusercontent.com/477750/53841107-907d0200-3f61-11e9-900d-82733db534a8.png)

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.