gentler cli error messages (#203)

This commit is contained in:
Michael Quigley 2023-02-01 11:19:56 -05:00
parent 719e66537f
commit 2ec314c1ee
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,7 @@
# v0.3.0-rc6
CHANGE: Gentler CLI error messages by default (https://github.com/openziti/zrok/issues/203)
CHANGE: Add favicon to web console (https://github.com/openziti/zrok/issues/198)
CHANGE: Add configurable "terms of use" link in the controller configuration, and optionally display the link on the login form and registration forms (https://github.com/openziti/zrok/issues/184)

View File

@ -2,6 +2,7 @@ package main
import (
"github.com/michaelquigley/pfxlog"
"github.com/openziti/zrok/tui"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"os"
@ -83,6 +84,9 @@ var testCmd = &cobra.Command{
func main() {
if err := rootCmd.Execute(); err != nil {
panic(err)
if panicInstead {
panic(err)
}
tui.Error("an error occurred", err)
}
}