In mpt() if the response is an error then we can't assume that "message" or "request" will be set on the response object, so they shouldn't be used in the watchdog message. Also, the response will always be an object, so no need to check.
In mpt() if the response is an error then we can't assume that "message" or "request" will be set on the response object, so they shouldn't be used in the watchdog message. Also, the response will always be an object, so no need to check.
Comments
Comment #2
jacob.embree commentedUsually, the first argument to
watchdog()is the module name. This patch fixes that.