add file and line debug info to libkdm errors