diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/puppet/simple_graph.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/puppet/simple_graph.rb b/lib/puppet/simple_graph.rb index 29e46c9bd..f9a665d3c 100644 --- a/lib/puppet/simple_graph.rb +++ b/lib/puppet/simple_graph.rb @@ -119,8 +119,10 @@ class Puppet::SimpleGraph if cycles = degree.values.reject { |ns| ns.empty? } and cycles.length > 0 message = cycles.collect { |edges| '(' + edges.collect { |e| e[1].to_s }.join(", ") + ')' - }.join(", ") - raise Puppet::Error, "Found dependency cycles in the following relationships: #{message}; try using the '--graph' option and open the '.dot' files in OmniGraffle or GraphViz" + }.join("\n") + raise Puppet::Error, "Found dependency cycles in the following relationships:\n" + + message + "\n" + + "Try the '--graph' option and opening the '.dot' file in OmniGraffle or GraphViz" end result |
