[PD] Create own error message that's findable?

IOhannes m zmölnig zmoelnig at iem.at
Fri Jan 8 19:46:52 CET 2016


On 01/08/2016 05:46 PM, Jonathan Wilkes via Pd-list wrote:
> Pd doesn't have an internal object that can do that.
> But the pd_error function is in m_pd.h.  That means someone can easily 
> make an external [error] that takes an incoming pd message and outputs it as 
> a pd error.  Doing so would print a trackable error to the console that tracks 
> back to the relevant [error] object that generated the error.
> There is probably already an object that does that in the big pile of Pd-extended 
> externals.

a couple:
the "log" library has an [error] object, which does exactly this.

i find this a bit inconvenient because the "find last error" will get
you to the [error] object itself, rather than to the object that
actually threw the error (the abstraction wherein the [error] was
generated).

therefore, iemguts' [canvaserror] will mark an upstream canvas as the
trackable object, so the user is lead to the (imo) "correct" object.

gfmadsr
IOhannes


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20160108/40863a2e/attachment-0001.sig>


More information about the Pd-list mailing list