Skip to content

Commit 7352af0

Browse files
committed
fix(cli): print migrate errors to stderr
The Migrate dispatcher logged exceptions through logger.error and then exited with status 1, but the package logger uses NullHandler by default so the user's terminal saw a silent non-zero exit. Print the exception message to stderr in addition to logging it so failures (e.g. plan-time validation errors) are always visible.
1 parent 6721270 commit 7352af0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

redisvl/cli/migrate.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ def __init__(self):
7373
try:
7474
getattr(self, command)()
7575
except Exception as e:
76+
print(f"Error: {e}", file=sys.stderr)
7677
logger.error(e)
7778
sys.exit(1)
7879

0 commit comments

Comments
 (0)