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