mirror of
https://github.com/tomru/pdfer.git
synced 2026-03-03 06:27:19 +01:00
fix type errors
This commit is contained in:
@@ -24,7 +24,7 @@ async function generateDoc(id: string): Promise<void> {
|
||||
const { stdout } = await execPromise(cmd, options)
|
||||
stdout.length && console.log('stdout:', stdout)
|
||||
console.log(`PDF ${id} generated`)
|
||||
} catch (error) {
|
||||
} catch (error: any) {
|
||||
console.error(error.stdout)
|
||||
console.error(error.toString())
|
||||
throw new Error(error.message)
|
||||
|
||||
Reference in New Issue
Block a user