Skip to content

Commit c67105a

Browse files
committed
Bubble up error message
1 parent d7c3264 commit c67105a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

cherry_picker/cherry_picker.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -803,8 +803,9 @@ def cherry_pick_cli(
803803
config=config,
804804
chosen_config_path=chosen_config_path,
805805
)
806-
except InvalidRepoException:
807-
click.echo(f"You're not inside a {config['repo']} repo right now! \U0001F645")
806+
except InvalidRepoException as ire:
807+
click.echo("Error validate sha")
808+
click.echo(ire.args[0])
808809
sys.exit(-1)
809810
except ValueError as exc:
810811
ctx.fail(exc)

0 commit comments

Comments
 (0)