Fix TS 4.5 errors

This commit is contained in:
Markus Olsson 2022-01-26 15:02:20 +01:00
parent 0fe569b016
commit 9169feff3d

View file

@ -120,7 +120,7 @@ export async function run(args: ReadonlyArray<string>): Promise<void> {
console.log(`Set!`)
} catch (e) {
console.warn(`Setting the app version failed 😿
(${e.message})
(${e instanceof Error ? e.message : e})
Please manually set it to ${nextVersion} in app/package.json.`)
}
@ -177,7 +177,11 @@ export async function run(args: ReadonlyArray<string>): Promise<void> {
console.log('Added!')
printInstructions(nextVersion, [])
} catch (e) {
console.warn(`Writing the changelog failed 😿\n(${e.message})`)
console.warn(
`Writing the changelog failed 😿\n(${
e instanceof Error ? e.message : e
})`
)
printInstructions(nextVersion, newEntries)
}
} else {