Skip to content

Commit 6474c9f

Browse files
authored
It'd help to debug command execution failures if we had the query! (#58)
1 parent d5ad366 commit 6474c9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

partitionmanager/sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def run(self, sql_cmd):
139139
)
140140
logging.error("stdout: %s", cpe.stdout)
141141
logging.error("stderr: %s", cpe.stderr)
142-
raise partitionmanager.types.DatabaseCommandException(cpe.stderr)
142+
raise partitionmanager.types.DatabaseCommandException(sql_cmd)
143143

144144
def db_name(self):
145145
rows = self.run("SELECT DATABASE();")

0 commit comments

Comments
 (0)