[Glass] GsFile atEnd answering nil rather than boolean

Mariano Martinez Peck via Glass glass at lists.gemtalksystems.com
Wed Mar 4 07:22:30 PST 2015


On Wed, Mar 4, 2015 at 12:22 PM, Mariano Martinez Peck <
marianopeck at gmail.com> wrote:

>
>
> On Wed, Mar 4, 2015 at 12:15 PM, James Foster <
> james.foster at gemtalksystems.com> wrote:
>
>> 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?
>>
>
> On the server.
>
>
>
>> This is a common pattern:
>>
>> (flag := aGsFile atEnd) ifNil: [self error: gsFile serverErrorString].
>>
>>
> But I don't have control over that since SIXX is the one that sends
> #atEnd. Using BinaryOrTextFile (which overrides atEnd answering true when
> nil)  the import of SIXX with the SAME file does work correctly.
>
>
>
>
> --
> Mariano
> http://marianopeck.wordpress.com
>



-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20150304/0f476a4b/attachment.html>


More information about the Glass mailing list