Skip to content

Commit

Permalink
Update autocompose.py
Browse files Browse the repository at this point in the history
Print error message to stderr so that I will be seen when redirecting stdout to `docker-compose.yml`
  • Loading branch information
moschlar authored Mar 7, 2022
1 parent d976d52 commit e7dbe41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autocompose.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def generate(cname):
try:
cid = [x.short_id for x in c.containers.list(all=True) if cname == x.name or x.short_id in cname][0]
except IndexError:
print("That container is not available.")
print("That container is not available.", file=sys.stderr)
sys.exit(1)

cattrs = c.containers.get(cid).attrs
Expand Down

0 comments on commit e7dbe41

Please sign in to comment.