File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -341,6 +341,7 @@ export class DockerService {
341341 } ) ;
342342
343343 this . _broadcast ( DockerService . OPENSTREETMAP_IMPORT_SERVICE_NAME , 'importing' , `Processing initial import of OSM data. This may take some time...` ) ;
344+ await disk . put ( LOG_PATH , 'Beginning OpenStreetMap data import...\n' ) ;
344345
345346 const container = await this . docker . createContainer ( {
346347 Image : image ,
@@ -364,6 +365,10 @@ export class DockerService {
364365 const data = await container . wait ( ) ;
365366 logger . debug ( `OpenStreetMap data import result: ${ JSON . stringify ( data ) } ` ) ;
366367
368+ if ( data . StatusCode !== 0 ) {
369+ throw new Error ( `OpenStreetMap data import failed with status code ${ data . StatusCode } . Check the log file at ${ LOG_PATH } for details.` ) ;
370+ }
371+
367372 await container . remove ( ) ;
368373 }
369374
You can’t perform that action at this time.
0 commit comments