[Pharo-project] Exception logging

Stéphane Ducasse stephane.ducasse at inria.fr
Tue Jan 17 06:43:10 EST 2012


Thanks guys 
now what is really strange to me is that whe the code does not contain error to make it compile I have to wrap it with on:do:
Any idea?


> and if I wrap the execution with a on: error do:
> I get 
> 	Start33 in the file
> 
> 
>  |file| 
> 	[ file := StandardFileStream fileNamed: 'loglog.txt'.
> 	file nextPutAll: 'Start'.
> 		[ file nextPutAll: ((OCClosureCompiler new 
> 					compile: 'foo ^ 33.' in: Object classified: nil notifying: nil ifFail: [])
> 					generate valueWithReceiver:  Object new arguments: #()) asString] on: Error do: [:ex | ex outer errorReportOn: file].
> 		]
> 		ensure: [file close].
> 		[true] whileTrue: [Beeper primitiveBeep.
> 			]] newProcess
> 
> 
> if I remove the on:do: 
> I do not get anything no beep.





More information about the Pharo-dev mailing list