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

jacob.embree created an issue. See original summary.

jacob.embree’s picture

Usually, the first argument to watchdog() is the module name. This patch fixes that.