File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,14 @@ import('rustpython')
21
21
} )
22
22
. catch ( ( e ) => {
23
23
console . error ( 'Error importing `rustpython`:' , e ) ;
24
- document . getElementById ( 'error' ) . textContent = e ;
24
+ let errorDetails = e . toString ( ) ;
25
+ if ( window . __RUSTPYTHON_ERROR ) {
26
+ errorDetails += '\nRustPython Error: ' + window . __RUSTPYTHON_ERROR ;
27
+ }
28
+ if ( window . __RUSTPYTHON_ERROR_STACK ) {
29
+ errorDetails += '\nStack: ' + window . __RUSTPYTHON_ERROR_STACK ;
30
+ }
31
+ document . getElementById ( 'error' ) . textContent = errorDetails ;
25
32
} ) ;
26
33
27
34
const fixedHeightEditor = EditorView . theme ( {
Original file line number Diff line number Diff line change @@ -102,6 +102,12 @@ def wdriver(request):
102
102
driver ._print_panic ()
103
103
driver .quit ()
104
104
raise
105
+ except Exception as e :
106
+ print (f"Error waiting for page to load: { e } " )
107
+ # Check the page source to see what's loaded
108
+ print ("Page source:" , driver .page_source [:500 ])
109
+ driver .quit ()
110
+ raise
105
111
106
112
yield driver
107
113
You can’t perform that action at this time.
0 commit comments