Browse Source

Merge remote-tracking branch 'Steuchs_bug_hunt/QSRC2TW'

Kevin_Smarts 3 months ago
parent
commit
6ee3ddd1c2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      qsrc2tw/tools/QSRC2TW/index.js

+ 2 - 2
qsrc2tw/tools/QSRC2TW/index.js

@@ -81,8 +81,8 @@ const convertPromise = new Promise((resolve, reject) => {
             generatedFilesPrefix: generatedFilesPrefix,
             options:options,
         }, (err, result) => {
-            const wasSuccessful = (result[0] == 0);
-            const message = result[1];
+            const wasSuccessful = (result?.[0] === 0);
+            const message = result?.[1] ?? '';
 
             if(!wasSuccessful){
                 const displayFilePath = baseFileName(filePath);