Skip to content

Commit 50b7f15

Browse files
committed
Fix run_sql using private Display.print
1 parent 75a972e commit 50b7f15

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/sql_spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def run_sql(cmds: nil, limit: 100, print: true, label: 'SELECT Results', collaps
6161
end
6262

6363
rescue Sequel::DatabaseError => ex
64-
Display.print("ERROR", ex.message.strip)
64+
Display.error(ex.message.strip)
6565
end
6666

6767
private

lib/sql_spec_helper/display.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ def status(msg)
2121
print("STATUS", msg)
2222
end
2323

24+
def error(msg)
25+
print("ERROR", msg)
26+
end
27+
2428
private
2529

2630
def prop(name, value)

0 commit comments

Comments
 (0)