1
0
mirror of https://github.com/fumiama/terasu-cloudflared.git synced 2026-06-10 13:10:33 +08:00

AUTH-2890: adds error handler to cli actions

This commit is contained in:
Michael Borkenstein
2020-07-14 13:21:44 -05:00
parent 3d782f7162
commit 7afde79600
3 changed files with 7 additions and 5 deletions

View File

@@ -88,7 +88,7 @@ func commands(version func(c *cli.Context)) []*cli.Command {
cmds := []*cli.Command{
{
Name: "update",
Action: updater.Update,
Action: cliutil.ErrorHandler(updater.Update),
Usage: "Update the agent if a new version exists",
ArgsUsage: " ",
Description: `Looks for a new version on the official download server.