improve error message in case of cycles
Merge pull request #102 from willowgarage/better-cycle-error

improve error message in case of cycles