#BUGFIX by cg
class: FileApplicationNoteBook
don't catch errors and show them later;
show them where thay happen
(do not make the debugger useless)
--- a/FileApplicationNoteBook.st Tue Feb 14 14:02:13 2017 +0100
+++ b/FileApplicationNoteBook.st Tue Feb 14 15:56:53 2017 +0100
@@ -4258,6 +4258,7 @@
fn := self fileName.
Image badImageFormatQuerySignal handle:[:ex |
e := ex description.
+ Dialog warn:('Error while reading image:\n%s' printfWith:e).
"/ ex mayProceed ifTrue:[ ex proceed ].
] do:[
img := Image fromFile:fn.
@@ -4269,14 +4270,16 @@
] ifFalse:[
e := 'No such image'
].
+ Dialog warn:('Error while reading image:\n%s' printfWith:e).
].
- Dialog warn:('Error while reading image:\n%s' printfWith:e).
^ nil
].
e notNil ifTrue:[
Dialog information:'An error occurred while decoding some parts of the image.\However, some image data was retrieved...' withCRs.
].
^ img.
+
+ "Modified: / 14-02-2017 / 15:43:46 / cg"
!
showHex