a bit refactoring
This commit is contained in:
parent
544bf57265
commit
6253d5994e
2 changed files with 1 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ func validateCmd(ctx context.Context, ms *xmain.State) (err error) {
|
|||
|
||||
ms.Opts = xmain.NewOpts(ms.Env, ms.Opts.Flags.Args()[1:])
|
||||
if len(ms.Opts.Args) == 0 {
|
||||
return xmain.UsageErrorf("validate must be passed an input file")
|
||||
return xmain.UsageErrorf("input argument required")
|
||||
}
|
||||
|
||||
inputPath := ms.Opts.Args[0]
|
||||
|
|
|
|||
|
|
@ -438,7 +438,6 @@ func (w *watcher) compileLoop(ctx context.Context) error {
|
|||
if len(svg) > 0 {
|
||||
err = fmt.Errorf("failed to fully %scompile (rendering partial svg): %w", recompiledPrefix, err)
|
||||
} else {
|
||||
fmt.Println(recompiledPrefix)
|
||||
err = fmt.Errorf("failed to %scompile: %w", recompiledPrefix, err)
|
||||
}
|
||||
errs = err.Error()
|
||||
|
|
|
|||
Loading…
Reference in a new issue