Issue 4413 in pharo: Better error message for MC

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 4413 in pharo: Better error message for MC

pharo
Status: Accepted
Owner: [hidden email]
Labels: Milestone-1.4 Type-Squeak

New issue 4413 by [hidden email]: Better error message for MC
http://code.google.com/p/pharo/issues/detail?id=4413

==================== Summary ====================

Name: Monticello-fbs.468
Author: fbs
Time: 9 June 2011, 8:10:14.668 pm
UUID: adb87d13-5e2c-4032-b404-f26c78e21f4a
Ancestors: Monticello-ul.466

Better error messages for off-line work:
* If you can't find a base "full version", say so
* If you Give Up on trying to resolve a name, report the actual failure  
rather than trying to access a socket anyway, and throwing a primitive  
failed error.

=============== Diff against Monticello-ul.466 ===============

Item was changed:
  ----- Method: MCDiffyVersion>>baseSnapshot (in category 'as yet  
unclassified') -----
  baseSnapshot
+       | baseVersion |
+       baseVersion := self workingCopy repositoryGroup versionWithInfo:  
base.
+       baseVersion ifNil: [Error signal: 'Missing snapshot: ', self  
baseInfo name].
+       ^ baseVersion snapshot!
-       ^ (self workingCopy repositoryGroup versionWithInfo: base) snapshot!

Item was changed:
  ----- Method: MCHttpRepository>>allFileNames (in category 'required') -----
  allFileNames
        | index |
+       [self displayProgress: 'Updating ', self description during:[
-       self displayProgress: 'Updating ', self description during:[
                index := HTTPSocket httpGet: self  
locationWithTrailingSlash, '?C=M;O=D' args: nil user: self user passwd:  
self password.
+       ]] on: NetworkError do: [ :e | self error: 'Could not access ',  
location, '(', e className, ')'].
-       ].
        index isString ifTrue: [self error: 'Could not access ', location].
        ^ self parseFileNamesFromStream: index  !



_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 4413 in pharo: Better error message for MC

pharo

Comment #1 on issue 4413 by [hidden email]: Better error message for  
MC
http://code.google.com/p/pharo/issues/detail?id=4413

added in PharoInbox Monticello-CamilloBruni.525


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 4413 in pharo: Better error message for MC

pharo
Updates:
        Status: Closed

Comment #2 on issue 4413 by [hidden email]: Better error message for  
MC
http://code.google.com/p/pharo/issues/detail?id=4413

in 14038


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker