Make DebugMode raise a better error when an optimization insert an op
that raise an error during computation.
Small fix to the new error just created.
Merge pull request #1633 from nouiz/debugmode

Make DebugMode raise a better error when an optimization insert an op