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) {
134
134
function bundlePlotly ( ) {
135
135
b . bundle ( function ( err ) {
136
136
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 ( ) ) ;
138
140
}
139
141
140
142
if ( firstBundle ) {
141
143
open ( 'http://localhost:' + PORT + '/devtools/test_dashboard' ) ;
142
144
firstBundle = false ;
143
145
}
144
- console . log ( 'Bundle updated at ' + new Date ( ) . toLocaleTimeString ( ) ) ;
145
146
} ) . pipe ( fs . createWriteStream ( constants . pathToPlotlyBuild ) ) ;
146
147
}
147
148
148
149
function bundleDevtools ( ) {
149
150
return new Promise ( function ( resolve , reject ) {
150
151
devtools . bundle ( function ( err ) {
151
152
if ( err ) {
152
- console . error ( 'Error while bundling!' , err ) ;
153
+ console . error ( 'Error while bundling!' , JSON . stringify ( String ( err ) ) ) ;
153
154
return reject ( err ) ;
154
155
} else {
155
156
return resolve ( ) ;
You can’t perform that action at this time.
0 commit comments