Author: Sara Arjona
MDL-78572 badges: Improve debugging
Display more information, like the status error, when the badge can't
be sent to the backpack.
Backport from MDL-77086
http://git.moodle.org/gw?p=moodle.git;a=commit;h=8e965a9661f9bb8dbc657dccb3c4f87957f238ee
http://github.com/moodle/moodle/commit/8e965a9661f9bb8dbc657dccb3c4f87957f238ee
+ 4.1 en [backpackexporterrorwithinfo,core_badges]