#BUGFIX by exept
authorClaus Gittinger <cg@exept.de>
Thu, 15 Aug 2019 14:05:21 +0200
changeset 24544 41e1b5b7b308
parent 24543 eb3802830398
child 24545 64bc963667fb
#BUGFIX by exept class: StreamNotOpenError changed: #description do not ask parameter for isEmpty; it could be a non-positionable stream, trying to position and raising an error.
StreamNotOpenError.st
--- a/StreamNotOpenError.st	Tue Aug 13 17:53:24 2019 +0200
+++ b/StreamNotOpenError.st	Thu Aug 15 14:05:21 2019 +0200
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
 "
  COPYRIGHT (c) 2004 by eXept Software AG
               All Rights Reserved
@@ -41,7 +39,7 @@
 !StreamNotOpenError methodsFor:'printing & storing'!
 
 description
-    parameter notEmptyOrNil ifTrue:[
+    (parameter isStream not and:[parameter notEmptyOrNil]) ifTrue:[
         ^ super description, ': ', parameter classNameWithArticle.
     ].
     ^ super description.