EAGLESIX-812: added better error handling and test cases to document sources