Sha256: 73540604b681e20b425f8a7c2a5f5f65a83fdce1f193368966ec20954879b236
Contents?: true
Size: 335 Bytes
Versions: 6
Compression:
Stored size: 335 Bytes
Contents
# coding: utf-8 module Libruby class MiscUtils def self.rescue_mysql2_error(e) if e.message =~ /Incorrect string value:/ # utf8mb4にすればいいのだ…。とりあえずそのばしのぎ。 puts e.message[0, 100] else puts e.message puts e.backtrace end end end end
Version data entries
6 entries across 6 versions & 1 rubygems