Skip to content

Commit

Permalink
app: tell the user to use -vv when debugging "manifest --validate"
Browse files Browse the repository at this point in the history
It seems natural to recommend "debug" flags when telling the user to
"debug".

More specifically, this makes a big difference in situations like the
one reported in #671

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
  • Loading branch information
marc-hb committed Sep 12, 2024
1 parent c399c01 commit 9ccf605
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/west/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ def append(*strings):
# warn them again.
append('Cannot load extension commands; '
'help for them is not available.')
append('(To debug, try: "west manifest --validate".)')
append('(To debug, try: "west -vv manifest --validate".)')
append('')
else:
# TODO we may want to be more aggressive about loading
Expand Down
2 changes: 1 addition & 1 deletion src/west/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def _get_manifest(self) -> Manifest:
if self._manifest is None:
self.die(f"can't run west {self.name};",
"it requires the manifest, which was not available.",
'Try "west manifest --validate" to debug.')
'Try "west -vv manifest --validate" to debug.')
return self._manifest

def _set_manifest(self, manifest: Optional[Manifest]):
Expand Down

0 comments on commit 9ccf605

Please sign in to comment.