#BUGFIX by cg
authorClaus Gittinger <cg@exept.de>
Tue, 14 Feb 2017 15:56:53 +0100
changeset 17411 86af3d933e91
parent 17410 f1a075944d7b
child 17412 e73c0b6aa689
#BUGFIX by cg class: FileApplicationNoteBook don't catch errors and show them later; show them where thay happen (do not make the debugger useless)
FileApplicationNoteBook.st
--- 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