fix(githook.ts): update error message to include command example for better user guidance

This commit is contained in:
di-sukharev
2024-03-03 19:58:23 +08:00
parent a9a2131ebf
commit 401be04b4d

View File

@@ -94,7 +94,7 @@ export const hookCommand = command(
}
throw new Error(
`Unsupported mode: ${mode}. Supported modes are: 'set' or 'unset'`
`Unsupported mode: ${mode}. Supported modes are: 'set' or 'unset', do: \`oco hook set\``
);
} catch (error) {
outro(`${chalk.red('✖')} ${error}`);