Added output to console for creating indexes.

This commit is contained in:
andrei 2022-05-25 11:07:15 +03:00
parent ae3b4fb2a6
commit 872eec40c4

View File

@ -207,6 +207,8 @@ def create_indexes(space_name):
_output = run_command_with_output(command=index_cmd.encode())
if "exists" in _output:
raise tarantool.error.SchemaError(f"Index {index_name} already exists.")
else:
print(f"Index '{index_name}' created succesfully.")
except tarantool.error.SchemaError as exists_error:
print(exists_error)