[erlang-questions] throwing from gen_server:init/1

Dmitry Demeshchuk demeshchuk@REDACTED
Wed Nov 23 15:55:48 CET 2011


Can be a single try-catch instead. As far as I remember, sasl won't
show you proper error message if an exception occurs in init/1.

On Wed, Nov 23, 2011 at 6:52 PM, Joel Reymont <joelr1@REDACTED> wrote:
>
> On Nov 23, 2011, at 2:51 PM, Dmitry Demeshchuk wrote:
>
>> Why not returning {stop, Reason} instead?
>
>
> See the bit about not wanting to have a large nested case statement.
>
> --------------------------------------------------------------------------
> - for hire: mac osx device driver ninja, kernel extensions and usb drivers
> ---------------------+------------+---------------------------------------
> http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
> ---------------------+------------+---------------------------------------
>
>



-- 
Best regards,
Dmitry Demeshchuk



More information about the erlang-questions mailing list