<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -60,7 +60,7 @@ module Roby
 		    pp.text &quot;no candidate for #{method_name}(#{method_options})&quot;
 		else
                     first, *rem = Roby.filter_backtrace(backtrace)
-                    pp.text &quot;#{first}: cannot develop a #{method_name}(#{method_options.to_s[1..-2]}) method&quot;
+                    pp.text &quot;cannot develop a #{method_name}(#{method_options.to_s[1..-2]}) method&quot;
                     pp.breakable
                     pp.group(4, &quot;    &quot;) do
                         rem.each do |line|
@@ -71,15 +71,22 @@ module Roby
 
                     pp.breakable
 		    errors.each do |m, error|
-			first, *rem = *Roby.filter_backtrace(error.backtrace)
-                        pp.text &quot;#{first}: planning method #{m} failed&quot;
-                        pp.breakable
-                        pp.text &quot;#{first}: #{error.message}&quot;
-                        pp.breakable
-                        pp.group(4, &quot;    &quot;) do
-                            rem.each do |line|
-                                pp.text &quot;from #{line}&quot;
-                                pp.breakable
+                        if error.kind_of?(NotFound)
+                            first, *rem = *Roby.filter_backtrace(error.backtrace)
+                            pp.text &quot;in method #{m}&quot;
+                            pp.breakable
+                            error.pretty_print(pp)
+                        else
+                            first, *rem = *Roby.filter_backtrace(error.backtrace)
+                            pp.text &quot;planning method #{m} failed&quot;
+                            pp.breakable
+                            pp.text &quot;#{first}: #{error.message}&quot;
+                            pp.breakable
+                            pp.group(4, &quot;    &quot;) do
+                                rem.each do |line|
+                                    pp.text &quot;from #{line}&quot;
+                                    pp.breakable
+                                end
                             end
                         end
 		    end
@@ -795,7 +802,7 @@ module Roby
             rescue NotFound =&gt; e
                 e.method_name       = name
                 e.method_options    = options
-                raise e
+                raise e.dup, e.message, caller(1)
             end
 	    
 	    def find_reusable_task(return_type, method_options)</diff>
      <filename>lib/roby/planning/model.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a0e03f484c3feda2dde768341ac10b5c813f080f</id>
    </parent>
  </parents>
  <author>
    <name>Sylvain Joyeux</name>
    <email>sylvain.joyeux@m4x.org</email>
  </author>
  <url>http://github.com/doudou/roby/commit/713774aa8ae0bbb1172a868915adffc4382b5463</url>
  <id>713774aa8ae0bbb1172a868915adffc4382b5463</id>
  <committed-date>2009-07-04T01:08:35-07:00</committed-date>
  <authored-date>2009-06-27T09:12:49-07:00</authored-date>
  <message>core: improve error display for planning errors

First, this commit fixes an issue where planning errors where
not shown in case of recursive planning method calls.

Moreover, it improves the layout of NotFound pretty-printing</message>
  <tree>357ac87850f4b3a2776cc7c43dfef75295f6ce4b</tree>
  <committer>
    <name>Sylvain Joyeux</name>
    <email>sylvain.joyeux@m4x.org</email>
  </committer>
</commit>
