core: make log messages about units entering a 'failed' state recognizable
Let's make this recognizable, and carry result information in a
structure fashion.
(cherry picked from commit 7c047d7443347c109daf67023a01c118b5f361eb)
Related: #1737283
patch_name: 0379-core-make-log-messages-about-units-entering-a-failed.patch
present_in_specfile: true
location_in_specfile: 379
squash_commits: true