From a159e296771d3d45d0012cff2dc95c958cd3717d Mon Sep 17 00:00:00 2001 From: Felix Date: Sat, 5 Jan 2019 19:35:12 +0100 Subject: [PATCH] Print a better git error to the console --- django_migration_linter/migration_linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_migration_linter/migration_linter.py b/django_migration_linter/migration_linter.py index 999843f5..a392881d 100644 --- a/django_migration_linter/migration_linter.py +++ b/django_migration_linter/migration_linter.py @@ -217,7 +217,7 @@ def _gather_migrations_git(self, git_commit_id): output = [] for line in map(utils.clean_bytes_to_str, diff_process.stderr.readlines()): output.append(line) - logger.info("Error while git diff command:\n{}".format("".join(output))) + logger.error("Error while git diff command:\n{}".format("".join(output))) raise Exception("Error while executing git diff command") return migrations