Sometimes raising error is not enough. As probably you know, you can use command like this:
raise ActiveModel::StrictValidationFailed, "Some message"
This command will return 500 error on your website + it will log into your console the name of the error and message you passed in.
But it won't give you any context. This is big problem if for example you call API and your response is bad.
You want to know, what is happening there directly.
Fortunately there is some solution for it.Read more