File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -29,19 +29,19 @@ let indexPath = archivePath + "/index.html"
2929let docPath = archivePath + " /data/documentation "
3030
3131guard fs. existsSync ( archivePath) else {
32- print ( " Specified file does not exist: " , archivePath)
32+ console . error ( " Specified file does not exist: " , archivePath)
3333 process. exit ( 2 )
3434}
3535guard fs. existsSync ( indexPath) , fs. existsSync ( docPath) else {
36- print ( " File does not look like a DocC archive: " , archivePath)
36+ console . error ( " File does not look like a DocC archive: " , archivePath)
3737 process. exit ( 3 )
3838}
3939
4040guard let dataIndex = ( try ? fs. readdirSync ( docPath) ) ?
4141 . first ( where: { $0. hasSuffix ( " .json " ) } )
4242else {
43- print ( " File does not look like a DocC archive, missing data index: " ,
44- archivePath)
43+ console . error ( " File does not look like a DocC archive, missing data index: " ,
44+ archivePath)
4545 process. exit ( 3 )
4646}
4747let dataIndexPath = docPath + " / " + dataIndex
You can’t perform that action at this time.
0 commit comments