The Inbox: MorphicExtras-ct.368.mcz

[email protected] Mon, 3 Aug 2026 20:55:03 0000
Newsgroups gmane.comp.lang.smalltalk.squeak.general
Message-ID <[email protected]>
A new version of MorphicExtras was added to project The Inbox:
http://source.squeak.org/inbox/MorphicExtras-ct.368.mcz

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

Name: MorphicExtras-ct.368
Author: ct
Time: 3 August 2026, 10:55:02.159993 pm
UUID: 243bf881-3f7e-4414-8336-e89a661fd6d6
Ancestors: MorphicExtras-mt.367

Improves error handling for SampledSound class>>exampleBach when the server sends a non-successful response. Thanks to Tobias (topa) for the report!

[RC assessment: COULD - low risk, is used in one example in the release notes]

=============== Diff against MorphicExtras-mt.367 ===============

Item was changed:
  ----- Method: SampledSound class>>exampleBach (in category '*MorphicExtras-examples') -----
  exampleBach
  	"SampledSound exampleBach"
  	
  	| url |
  	url := 'http://upload.wikimedia.org/wikipedia/commons/4/4e/Bach_Brandenburg_4_coda_to_the_3rd_movement.wav'.
  
  	^ Imports default imports
  		at: #exampleBach
+ 		ifAbsentPut: [ | result |
- 		ifAbsentPut: [
  			self notify: ('This action will download the following content:\\{1}\\Do you want to proceed?' translated withCRs format: {url}).
+ 			result := HTTPSocket httpGet: url.
+ 			result isString ifTrue: ["error" ^ self error: result].
+ 			self fromWaveStream: result]!
- 			self fromWaveStream: (HTTPSocket httpGet: url)]!

Squeak-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]