fix(core): improve error reporting