mw.loader: Improve error logging

Follows-up 4f23099c22.

Change-Id: Ie643cf7fba5112b6be0e30410696e1737d549058
Merge "mw.loader: Improve error logging"