format all
This commit is contained in:
parent
50e9b861b0
commit
da1a8934e1
3 changed files with 13 additions and 9 deletions
|
|
@ -108,7 +108,7 @@ export async function mainConverter(
|
|||
console.log(
|
||||
`No available converter supports converting from ${fileType} to ${convertTo}.`,
|
||||
);
|
||||
return "File type not supported"
|
||||
return "File type not supported";
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
@ -123,13 +123,13 @@ export async function mainConverter(
|
|||
console.log(
|
||||
`Converted ${inputFilePath} from ${fileType} to ${convertTo} successfully using ${converterName}.`,
|
||||
);
|
||||
return "Done"
|
||||
return "Done";
|
||||
} catch (error) {
|
||||
console.error(
|
||||
`Failed to convert ${inputFilePath} from ${fileType} to ${convertTo} using ${converterName}.`,
|
||||
error,
|
||||
);
|
||||
return "Failed, check logs"
|
||||
return "Failed, check logs";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue