File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -194,10 +194,11 @@ def stdfmt(data): # type: (unicode) -> unicode
194
194
nodejs .poll ()
195
195
196
196
if js_console :
197
- print ("Javascript console output:" )
198
- print ("----------------------------------------" )
199
- print ('\n ' .join (re .findall (r'^[[](?:log|err)[]].*$' , stderrdata , flags = re .MULTILINE )))
200
- print ("----------------------------------------" )
197
+ if len (stderrdata ) > 0 :
198
+ print ("Javascript console output:" )
199
+ print ("----------------------------------------" )
200
+ print ('\n ' .join (re .findall (r'^[[](?:log|err)[]].*$' , stderrdata , flags = re .MULTILINE )))
201
+ print ("----------------------------------------" )
201
202
202
203
if debug :
203
204
info = u"returncode was: %s\n script was:\n %s\n stdout was: %s\n stderr was: %s\n " % \
You can’t perform that action at this time.
0 commit comments