summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYURII D. <gkhelloworld@gmail.com>2025-02-18 18:20:19 +0200
committerGitHub <noreply@github.com>2025-02-18 17:20:19 +0100
commitf1084f3e8370d1d0ceb3a1e82517e7b1761be42a (patch)
treed7a1b418d98001e97758d185dae364b14002ebc8
parent40e02d5d28e59dbeb6134afdce12536c602e6aa5 (diff)
Align formatting of user visible error messages (#84)HEADmaster
* Update run.go Remove "Error", The "return" already implies an error. Error strings should not be capitalized (unless beginning with proper nouns or acronyms) or end with punctuation, since they are usually printed following other context. * Update dev.go Remove "Error", The "return" already implies an error. Error strings should not be capitalized (unless beginning with proper nouns or acronyms) or end with punctuation, since they are usually printed following other context. * Update run.go * Update dev.go
-rw-r--r--cmd/dev.go2
-rw-r--r--cmd/run.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd/dev.go b/cmd/dev.go
index e7edbf8..44e610d 100644
--- a/cmd/dev.go
+++ b/cmd/dev.go
@@ -26,7 +26,7 @@ func (c *DevCommand) Run(args []string) error {
cfg, err := parseConfigArgs(fs.Args()[1:])
if err != nil {
- return fmt.Errorf("Error parsing config flags: %w", err)
+ return fmt.Errorf("error parsing config flags: %w", err)
}
return flyscrape.Dev(fs.Arg(0), cfg)
diff --git a/cmd/run.go b/cmd/run.go
index a02b2ec..77f884a 100644
--- a/cmd/run.go
+++ b/cmd/run.go
@@ -26,7 +26,7 @@ func (c *RunCommand) Run(args []string) error {
cfg, err := parseConfigArgs(fs.Args()[1:])
if err != nil {
- return fmt.Errorf("Error parsing config flags: %w", err)
+ return fmt.Errorf("error parsing config flags: %w", err)
}
return flyscrape.Run(fs.Arg(0), cfg)