dm: core: Add logging of some common errors