avoid another error when notification is raised
authorClaus Gittinger
Sun, 13 Apr 2014 17:02:07 +0200
changeset 418 91d981298a96
parent 417 63f510479910
child 419 2f7fa37437e9
avoid another error when notification is raised with Debug flag on.
mercurial/HGCommand.st
--- a/mercurial/HGCommand.st	Sun Apr 13 16:33:23 2014 +0200
+++ b/mercurial/HGCommand.st	Sun Apr 13 17:02:07 2014 +0200
@@ -548,7 +548,9 @@
         Logger log: 'cmd: propagating: ' , anException class name , ' - ', anException description severity: #trace facility: 'HG'.
     ].
     Debug ifTrue:[ 
-        anException suspendedContext fullPrintAllOn: Transcript.  
+        anException suspendedContext notNil ifTrue:[
+            anException suspendedContext fullPrintAllOn: Transcript.
+        ]
     ].
     errors nextPut: anException.
 
@@ -593,7 +595,6 @@
                     ifTrue:[OperatingSystem getEnvironment copy]
                     ifFalse:[environment := Dictionary new].
     environment at: 'HGEDITOR' put: 'true'.
-
     environment at:'LANG' put:'C'.
     environment at:'LC_MESSAGES' put:'C'.
 
@@ -1821,13 +1822,21 @@
 
 !HGCommand class methodsFor:'documentation'!
 
+version
+    ^ '$Header: /cvs/stx/stx/libscm/mercurial/HGCommand.st,v 1.4 2014/04/13 15:02:07 cg Exp $'
+!
+
+version_CVS
+    ^ '$Header: /cvs/stx/stx/libscm/mercurial/HGCommand.st,v 1.4 2014/04/13 15:02:07 cg Exp $'
+!
+
 version_HG
 
     ^ '$Changeset: <not expanded> $'
 !
 
 version_SVN
-    ^ 'Id::                                                                                                                        '
+    ^ '$Id: HGCommand.st,v 1.4 2014/04/13 15:02:07 cg Exp $'
 ! !