improve error detail