diff options
| author | Luke Kanies <luke@madstop.com> | 2009-07-24 09:42:09 -0700 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2009-07-25 11:57:31 +1000 |
| commit | 7d40f9e039964e2c3f9e94b5ef2ccbded45a59a5 (patch) | |
| tree | 9a50ee1520e06c04fc78c472f65c4a0803293524 /lib | |
| parent | b4facb0bacaa6e3bc1eb3123c69e037e0ba8ec69 (diff) | |
| download | puppet-7d40f9e039964e2c3f9e94b5ef2ccbded45a59a5.tar.gz puppet-7d40f9e039964e2c3f9e94b5ef2ccbded45a59a5.tar.xz puppet-7d40f9e039964e2c3f9e94b5ef2ccbded45a59a5.zip | |
Fixing #2443: Adding debugging guidance to dep cycle errors
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/puppet/simple_graph.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/simple_graph.rb b/lib/puppet/simple_graph.rb index 34db59e5c..5e8f5cdb7 100644 --- a/lib/puppet/simple_graph.rb +++ b/lib/puppet/simple_graph.rb @@ -209,7 +209,7 @@ class Puppet::SimpleGraph # If we have any vertices left with non-zero in-degrees, then we've found a cycle. if cycles = degree.find_all { |vertex, edges| edges.length > 0 } and cycles.length > 0 message = cycles.collect { |vertex, edges| edges.collect { |e| e.to_s }.join(", ") }.join(", ") - raise Puppet::Error, "Found dependency cycles in the following relationships: %s" % message + raise Puppet::Error, "Found dependency cycles in the following relationships: %s; try using the '--graph' option and open the '.dot' files in OmniGraffle or GraphViz" % message end return result |
