Is there anyway to fetch the mysql error in datamapper (I am using Sinatra)
@params = {"product"=>"client", "os"=>"windows", "architecture"=>"32", "version"=>""}
@a = Package.new(@params)
@a.save
@a.save
returns me false, because version cannot be null. But How can I retrieve this error message (that mysql must have returned saying version can not be null)?