Change 'code' to 'message'

This commit is contained in:
riking
2014-07-17 15:19:58 -07:00
parent a69efada85
commit d90404e830
7 changed files with 14 additions and 14 deletions

View File

@ -128,7 +128,7 @@ module Oneboxer
}
}
rescue => e
Discourse.handle_exception(e, url: url)
Discourse.handle_exception(e, message: "While trying to onebox a URL", url: url)
# return a blank hash, so rest of the code works
{preview: "", onebox: ""}
end