Created better exceptions for dependency graph