fix type errors

This commit is contained in:
Thomas Ruoff
2021-11-24 12:00:39 +01:00
parent 04b6729625
commit 9a470a52a3
4 changed files with 17 additions and 8 deletions

View File

@@ -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)