Give a slightly better error whn trying to add a KDM using add-file (#1035).