Log errors to stderr

This commit is contained in:
strNophix 2022-09-24 15:53:23 +02:00
parent da6c22d1f4
commit 668804f94e

View File

@ -103,11 +103,11 @@ class Bot(discord.Client):
def main(argv: typing.Sequence[str]):
if len(argv) == 0:
print("Usage: lurker.py <token>")
print("Usage: lurker.py <token>", file=sys.stderr)
return 1
if not API_URL:
print("Missing `API_URL` environment variable.")
print("Missing `API_URL` environment variable.", file=sys.stderr)
return 1
Bot().run(argv[0])