File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ const Utils = {
138138 return data
139139 } ,
140140
141- cleanStacktrace ( stackTrace ) {
141+ getPlainStackTrace ( stackTrace ) {
142142 return stackTrace . replace ( / \u001b \[ .* ?m / g, '' ) ;
143143 } ,
144144
Original file line number Diff line number Diff line change @@ -32,7 +32,10 @@ export default store => next => action => {
3232 next ( action ) ;
3333 } ;
3434
35- const pythonErrorCallback = error => next ( openBackendErrorDialog ( error ) ) ;
35+ const pythonErrorCallback = error => {
36+ console . debug ( Utils . getPlainStackTrace ( error . errorDetails ) )
37+ return next ( openBackendErrorDialog ( error ) ) ;
38+ } ;
3639
3740 switch ( action . type ) {
3841
@@ -163,7 +166,7 @@ export const processError = response => {
163166 if ( parsedResponse ) {
164167 return {
165168 errorMessage : parsedResponse [ 'message' ] ,
166- errorDetails : Utils . cleanStacktrace ( parsedResponse [ 'details' ] )
169+ errorDetails : parsedResponse [ 'details' ]
167170 }
168171 }
169172 return false
You can’t perform that action at this time.
0 commit comments