On 03/25/2011 01:00 PM, Holger Hans Peter Freyther wrote:
Hi Paolo,
from time to time I get the below exception. I fail to properly reproduce it
with a standalone test case though.
FileDescriptor)>>nextAvailable:into:startingAt:
...
self isOpen ifFalse: [^available].
^^^ just checks if the fd is>= 0
count := self
fileOp: 3
with: aCollection
with: position + available
with: (position + n - 1 min: aCollection size).
^^^ okay an error happened here that will not throw an exception and the
default fileOp:with:with:with will return nil. So maybe we should add an
ifFail: [0] to it?
The correct #ifFail: would probably be to check errno.
We should also look for cases where raising an exception is appropriate
instead of calling the failure block.
Paolo
_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk