Skip to content

Commit

Permalink
Refine error message if .rpdk-config doesn't exist (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wenbing Li authored Feb 15, 2021
1 parent 8b24bb5 commit 1379997
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/rpdk/core/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,10 @@ def load(self):
self.load_settings()
except FileNotFoundError as e:
self._raise_invalid_project(
"Project file not found. Have you run 'init'?", e
"Project file {} not found. Have you run 'init' or in a wrong directory?".format(
self.settings_path
),
e,
)

if self.artifact_type == ARTIFACT_TYPE_MODULE:
Expand Down

0 comments on commit 1379997

Please sign in to comment.