[Pharo-project] Exception logging
nicolas.cellier.aka.nice at gmail.com
Mon Jan 16 22:57:20 CET 2012
It's more tricky than that...
Try this one that works:
[ file := StandardFileStream fileNamed: 'loglog.txt'.
file nextPutAll: 'Start'.
[ file nextPutAll: (Compiler evaluate: '55 + 88 poipuiu') asString]
on: Error do: [:ex | file nextPutAll: 'failed'].
] ensure: [file close].
2012/1/16 Max Leske <maxleske at gmail.com>:
> Looks like Compiler might use it's own error handler?
> On Mon, Jan 16, 2012 at 7:08 PM, Stéphane Ducasse
> <stephane.ducasse at inria.fr> wrote:
>> Hi guys
>> when I do the following
>> [ 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
>> May be my mistake is obvious but I do not see it.
More information about the Pharo-project