Skip to content
This repository was archived by the owner on Nov 9, 2023. It is now read-only.

Commit 3e690f3

Browse files
committed
feat(generator): better error message for missing crate
1 parent 4803ba6 commit 3e690f3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

generator/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ const init = require('tauri/dist/api/init')
55

66
module.exports = async (api, options) => {
77
await execa('cargo', ['tauri-bundler', '--version']).catch(() => {
8-
// TODO: provide better error
9-
error('Tauri CLI crate not installed')
8+
error(
9+
'Tauri bundler crate not installed. Have you installed it with "cargo install tauri-bundler"?'
10+
)
1011
process.exit(1)
1112
})
1213

0 commit comments

Comments
 (0)