Give a useful exception message when there is a circular dependency