mirror of
https://github.com/desktop/desktop
synced 2024-08-24 18:57:33 +00:00
Fix TS 4.5 errors
This commit is contained in:
parent
0fe569b016
commit
9169feff3d
|
@ -120,7 +120,7 @@ export async function run(args: ReadonlyArray<string>): Promise<void> {
|
||||||
console.log(`Set!`)
|
console.log(`Set!`)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.warn(`Setting the app version failed 😿
|
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.`)
|
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!')
|
console.log('Added!')
|
||||||
printInstructions(nextVersion, [])
|
printInstructions(nextVersion, [])
|
||||||
} catch (e) {
|
} 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)
|
printInstructions(nextVersion, newEntries)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue