Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make Database#log_exception handle nil exception message

  • Loading branch information...
commit f4cb4735b65008e158b0435e926658fece2b8415 1 parent a3680a1
@jeremyevans authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/sequel/database/logging.rb
View
2  lib/sequel/database/logging.rb
@@ -19,7 +19,7 @@ class Database
# Log a message at error level, with information about the exception.
def log_exception(exception, message)
- log_each(:error, "#{exception.class}: #{exception.message.strip}: #{message}")
+ log_each(:error, "#{exception.class}: #{exception.message.strip if exception.message}: #{message}")
end
# Log a message at level info to all loggers.
Please sign in to comment.
Something went wrong with that request. Please try again.