Add context to content-server assets download error

This commit is contained in:
chris
2020-08-05 14:47:19 -04:00
committed by Chris Marshall
parent 13d35f17f1
commit f8559befca
6 changed files with 15 additions and 12 deletions

View File

@ -21,9 +21,10 @@ var opts struct {
func NewCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "content",
Short: "q3 content server",
SilenceUsage: true,
Use: "content",
Short: "q3 content server",
SilenceErrors: true,
SilenceUsage: true,
RunE: func(cmd *cobra.Command, args []string) (err error) {
if !filepath.IsAbs(opts.AssetsDir) {
opts.AssetsDir, err = filepath.Abs(opts.AssetsDir)