News for hackers. Stuff that matters.
Re:Telefunc: Remote Functions instead of API by kamilafsar on Sunday October 02, 2022 @04:27AM (#33054067)
Whoa, that’s so similar to our project [1] it’s almost scary :)

How are errors handled though? What happens when you “throw Abort()”.

https://github.com/samen-io/samen

Re:Telefunc: Remote Functions instead of API by brillout on Sunday October 02, 2022 @06:13AM (#33054597)
The frontend-side also throws an error. `throw Abort()` is about protecting telefunctions from third parties. It shouldn't be used to implement business logic (simply use `return` instead).

Samen => Neat :-).

Re:Telefunc: Remote Functions instead of API by jasperpressplay on Sunday October 02, 2022 @12:25PM (#33057392)
Samen can throw errors on the server that can be caught on the client. Is that possible with telefunctions?