[PD] Ability to access error messages from patch

Martin Peach chakekatzil at gmail.com
Mon Jun 14 17:22:42 CEST 2021


On Mon, Jun 14, 2021 at 11:03 AM Christof Ressi <info at christofressi.com> wrote:
>
> 1) is
> probably a more pragmatic approach that doesn't require any code to be
> changed and still covers all Pd objects _and_ externals that employ
> 'post'.
>
> I mean, it's probably fine for display purposes, but the help file should clearly state:
>
> "do NOT parse the textual content of error message. EVER. SERIOUSLY"
>
> Parsing error messages is like a house of cards that can collapse anytime.

Also they would tend to fill up the symbol table with junk.
If an error is really an error, it's not fixable from within the patch
anyway. An object that encounters a showstopper error can call
pd_error() instead of post() to print to the console, The user can
then "find last error' and the object will be highlighted. Then they
can plug the cable back in or whatever.


Martin





More information about the Pd-list mailing list