mirror of
https://github.com/cheat/cheat.git
synced 2024-11-14 08:01:09 +01:00
fix: broken logline in --search
Resolves a malformed logging statement in `cmd_search` which would never actually write to stderr.
This commit is contained in:
parent
9a6130b6b7
commit
eab3c14f1f
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ func cmdSearch(opts map[string]interface{}, conf config.Config) {
|
|||
// compile the regex
|
||||
reg, err := regexp.Compile(pattern)
|
||||
if err != nil {
|
||||
fmt.Errorf("failed to compile regexp: %s, %v", pattern, err)
|
||||
fmt.Fprintln(os.Stderr, fmt.Sprintf("failed to compile regexp: %s, %v", pattern, err))
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue