#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.
--- 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.