Skip to content

Commit a3b1d3f

Browse files
committed
(maint) Loosen regex restriction on SQL error
- Properly parse errors that look like: SQL Server error message instead of those that must have whitespace like: SQL Server error message
1 parent 2bd9042 commit a3b1d3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet_x/sqlserver/sql_connection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def has_errors
105105

106106
private
107107
def parse_for_error(result)
108-
match = result.match(/SQL Server\n\s+(.*)/i)
108+
match = result.match(/SQL Server\n\s*(.*)/i)
109109
match[1] unless match == nil
110110
end
111111
end

0 commit comments

Comments
 (0)