File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -134,22 +134,23 @@ function writeFilePromise(path, contents) {
134134function bundlePlotly ( ) {
135135 b . bundle ( function ( err ) {
136136 if ( err ) {
137- console . error ( 'Error while bundling!' , err ) ;
137+ console . error ( 'Error while bundling!' , JSON . stringify ( String ( err ) ) ) ;
138+ } else {
139+ console . log ( 'Bundle updated at ' + new Date ( ) . toLocaleTimeString ( ) ) ;
138140 }
139141
140142 if ( firstBundle ) {
141143 open ( 'http://localhost:' + PORT + '/devtools/test_dashboard' ) ;
142144 firstBundle = false ;
143145 }
144- console . log ( 'Bundle updated at ' + new Date ( ) . toLocaleTimeString ( ) ) ;
145146 } ) . pipe ( fs . createWriteStream ( constants . pathToPlotlyBuild ) ) ;
146147}
147148
148149function bundleDevtools ( ) {
149150 return new Promise ( function ( resolve , reject ) {
150151 devtools . bundle ( function ( err ) {
151152 if ( err ) {
152- console . error ( 'Error while bundling!' , err ) ;
153+ console . error ( 'Error while bundling!' , JSON . stringify ( String ( err ) ) ) ;
153154 return reject ( err ) ;
154155 } else {
155156 return resolve ( ) ;
You can’t perform that action at this time.
0 commit comments