[BUG] Url retrieveContents doesn't detect errors (was Re: StarBrowser Squeakmap Problem/Question)
Ned Konz
ned at bike-nomad.com
Thu Nov 21 17:35:03 UTC 2002
On Wednesday 20 November 2002 11:39 pm, Roel Wuyts wrote:
> While I admit it was pretty stupid from me to not go and actually
> look at the file, I am wondering whether the process cannot be
> improved a little:
> (1) it is strange that the error file has exactly the same name,
> leading to this kind of problem. Maybe calling it
> starbrowser.sar-error could give a better indication
> (2) maybe it is possible to just display the error, which is also
> done when the network is unavailable.
In a 5125 image, the network behavior is causing part of the problem.
(Url absoluteFromText: 'http://localhost/xxx/yyy') retrieveContents
returns a text/plain MIMEDocument with the contents:
'error occured retrieving http://localhost/xxx/yyy: Server localhost
is not responding'
when it should return nil (per the documentation) or raise an
exception.
Then, further:
* SMSimpleInstaller>>download needs to detect download errors.
* download and install errors need to be displayed somewhere or at
least be made available to the user
--
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE
More information about the Squeak-dev
mailing list
|