Print a better git error to the console
This commit is contained in:
1 file changed
+1
-1
@@ -217,7 +217,7 @@ class MigrationLinter(object):
|
|||||||
output = []
|
output = []
|
||||||
for line in map(utils.clean_bytes_to_str, diff_process.stderr.readlines()):
|
for line in map(utils.clean_bytes_to_str, diff_process.stderr.readlines()):
|
||||||
output.append(line)
|
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")
|
raise Exception("Error while executing git diff command")
|
||||||
return migrations
|
return migrations
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user