From 9fb3dbd0fa025f48ba387d7e51dbab530145ab9b Mon Sep 17 00:00:00 2001 From: dbaumgarten Date: Sun, 6 Dec 2020 00:37:41 +0100 Subject: [PATCH] Small tweaks to CLI-output --- cmd/compile.go | 2 +- cmd/test.go | 2 +- cmd/verify.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/compile.go b/cmd/compile.go index 17e6520..7969b3d 100644 --- a/cmd/compile.go +++ b/cmd/compile.go @@ -37,7 +37,7 @@ func compileFile(fpath string) { // compilation failed completely. Fail now! if converted == nil { - exitOnError(compileerr, "converting to yolol") + exitOnError(compileerr, "converting '"+fpath+"' to yolol") } gen := parser.Printer{} diff --git a/cmd/test.go b/cmd/test.go index be5fca0..a78b43f 100644 --- a/cmd/test.go +++ b/cmd/test.go @@ -22,7 +22,7 @@ var testCmd = &cobra.Command{ exitOnError(err, "loading test case") fmt.Println("Running file: " + arg) fails := test.Run(func(c testing.Case) { - fmt.Println(" Running case: " + c.Name) + fmt.Println("- Running case: " + c.Name) }) if len(fails) == 0 { fmt.Println("Tests OK") diff --git a/cmd/verify.go b/cmd/verify.go index fc1b70c..e710495 100644 --- a/cmd/verify.go +++ b/cmd/verify.go @@ -21,7 +21,7 @@ var verifyCmd = &cobra.Command{ p.DebugLog = debugLog file := loadInputFile(filepath) _, errs := p.Parse(file) - exitOnError(errs, "parsing file") + exitOnError(errs, "parsing file '"+filepath+"'") err := validators.ValidateCodeLength(file) exitOnError(err, "validating code")