File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -296,7 +296,6 @@ async function recursivelyTranslate(
296
296
const text = messageContent . text ;
297
297
298
298
const safeText = escapeXML ( text . value ) ;
299
- console . log ( safeText ) ;
300
299
const textStream = Readable . from ( "<WRAPPER>" + safeText + "</WRAPPER>" ) ;
301
300
302
301
await new Promise < void > ( ( resolve , reject ) => {
@@ -348,7 +347,7 @@ async function recursivelyTranslate(
348
347
clean . _parser . resume ( ) ;
349
348
} catch ( e ) {
350
349
console . log ( "Failed to resume parser:" , e ) ;
351
- reject ;
350
+ reject ( ) ;
352
351
}
353
352
} ) ;
354
353
@@ -360,7 +359,7 @@ async function recursivelyTranslate(
360
359
return translatedChunk ;
361
360
} catch ( err ) {
362
361
console . log ( `Error occured while translating ${ path } :\n ` + err ) ;
363
- return translated + "<!-- Error translating this section -->" ;
362
+ return translatedChunk + "<!-- Error translating this section -->" ;
364
363
}
365
364
}
366
365
}
You can’t perform that action at this time.
0 commit comments