Improve formatting of error string for modules
Improve formatting of error string for modules

With a new solver, modular solver could have an alternative context,
therefore it requires a different formatting procedure.

rpm-software-management/libdnf,rpm-software-management/libdnf,rpm-software-management/libdnf,rpm-software-management/libdnf