[Glass] GsFile atEnd answering nil rather than boolean

James Foster via Glass glass at lists.gemtalksystems.com
Wed Mar 4 07:15:39 PST 2015


On Mar 4, 2015, at 5:08 AM, Mariano Martinez Peck via Glass <glass at lists.gemtalksystems.com> wrote:
> 
> The problem is that I get a Sixx parse error because at some point GsFile answers nil to #atEnd. The method says that that happens when there is an error. But I have no idea what error can be. I tried to send #lastErrorString to the GsFile instance but I also get nil. 
> 
> Any clues on when #atEnd can answer nil or how can I get more info of why it is failing?

Was the GsFile instance opened on the client or on the server? This is a common pattern:

	(flag := aGsFile atEnd) ifNil: [self error: gsFile serverErrorString].

James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20150304/d3956f19/attachment.html>


More information about the Glass mailing list