[supercollider/supercollider] d418a4: Fix SC try / catch behaviour for primitive excepti...

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[supercollider/supercollider] d418a4: Fix SC try / catch behaviour for primitive excepti...

  Branch: refs/heads/fix-primitive-exception-handling
  Home:   https://github.com/supercollider/supercollider
  Commit: d418a48c2be015d4b5d65390441d68049dbc7790
  Author: Scott Wilson <[hidden email]>
  Date:   2017-05-13 (Sat, 13 May 2017)

  Changed paths:
    M lang/LangPrimSource/PyrPrimitive.cpp

  Log Message:
  Fix SC try / catch behaviour for primitive exception errors

- the previous version posted exception errors in doPrimitive, rather than setting them in the Error via prPrimitiveErrorString as for other primitive errors. This prevented sclang try / catch from truly catching the error.
- This could be annoying in cases like network music situations, where a stream of errors resulting from another host going down could not be handled as desired even though the problem had nothing to do with SC, or even the local machine.
- this version fixes that, and makes the error message clearer and more informative

Signed-off-by: Scott Wilson <[hidden email]>