Question: Trapping errors in dsolve

I have a command in Maple that looks like


where curve is a procedure returned by dsolve.  If I try to change the "m=0..40" to "m=0..50" or higher, I get

"Error, (in curve) cannot evaluate the solution further right of 4.9812992, probably a singularity" and an empty sequence in pts.  I would like pts to contain all of the results that did return an answer, or up to the first that gave an error.

DEplot, doing a similar thing, just issues a warning: "Warning, plot may be incomplete, the following errors(s) were issued:
   cannot evaluate the solution further right of 4.9812992, probably a singularity"

Please Wait...