Improve error message to include depedency source