Skip to content

Commit

Permalink
Merge pull request #11 from tekktrik/dev/fix-restart-exit
Browse files Browse the repository at this point in the history
Make return code 1 for restart if no links available
  • Loading branch information
tekktrik authored Oct 15, 2022
2 parents dfb4b96 + b8a6c6c commit f2944c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions circlink/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ def restart(link_id: str) -> None:

link_list = _get_links_list(pattern)
if len(link_list) == 1:
print("There are no links in the history")
sys.exit(0)
print("There are no links in the history to restart")
sys.exit(1)

for index, link in enumerate(link_list):
if not index:
Expand Down

0 comments on commit f2944c2

Please sign in to comment.