[Pharo-project] Exception logging

Gastón Dall' Oglio gaston.dalloglio at gmail.com
Mon Jan 16 22:51:03 CET 2012


Hello Stefan.

The error seem there is in the do: block... I try this and works ok:

|file|
[ file := StandardFileStream fileNamed: 'loglog.txt'.
file nextPutAll: 'Start'.
[ file nextPutAll: (Compiler evaluate: '55 + 88 poipuiu') asString] on:
Error do: [:ex |* 'not ok' inspect* ].
] ensure: [file close].



2012/1/16 Stéphane Ducasse <stephane.ducasse at inria.fr>

> Hi guys
>
> when I do the following
>
> |file|
> [ file := StandardFileStream fileNamed: 'loglog.txt'.
> file nextPutAll: 'Start'.
> [ file nextPutAll: (Compiler evaluate: '55 + 88 poipuiu') asString] on:
> Error do: [:ex | ex outer errorReportOn: file].
> ] ensure: [file close].
>
> I get a pop up DNU poipuiu while I would like to get the stack on the
> stream.
>
> May be my mistake is obvious but I do not see it.
>
> Stef
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gforge.inria.fr/pipermail/pharo-project/attachments/20120116/cff5de03/attachment.htm>


More information about the Pharo-project mailing list