Skip to content

Commit a828134

Browse files
committed
Add PBPythonError>>gtTraceFor:
1 parent 61790cc commit a828134

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/PythonBridge/PBPythonError.class.st

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,17 @@ PBPythonError >> errorMessage: anObject [
5353
errorMessage := anObject
5454
]
5555

56+
{ #category : #ui }
57+
PBPythonError >> gtTraceFor: aView [
58+
<gtView>
59+
60+
trace ifNil: [ ^ aView empty ].
61+
^ aView textEditor
62+
title: 'Python Trace';
63+
priority: 5;
64+
text: [ trace asRopedText ]
65+
]
66+
5667
{ #category : #initialization }
5768
PBPythonError >> initialize [
5869
super initialize.

0 commit comments

Comments
 (0)