diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2024-05-07 01:06:42 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-07 01:06:42 +0900 |
| commit | e8405f40fe2eb3675f1cb4f69e825eff5f13f269 (patch) | |
| tree | c917367f1f0098939f9cdf7376a2a135907024fc /src/options_no_pprof.go | |
| parent | 065b9e6fb2ce3e6e50ff423c3786989afa04ee14 (diff) | |
| download | fzf-e8405f40fe2eb3675f1cb4f69e825eff5f13f269.tar.gz | |
Refactor the code so that fzf can be used as a library (#3769)
Diffstat (limited to 'src/options_no_pprof.go')
| -rw-r--r-- | src/options_no_pprof.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/options_no_pprof.go b/src/options_no_pprof.go index 1a19bc63..1093fc10 100644 --- a/src/options_no_pprof.go +++ b/src/options_no_pprof.go @@ -3,9 +3,11 @@ package fzf +import "errors" + func (o *Options) initProfiling() error { if o.CPUProfile != "" || o.MEMProfile != "" || o.BlockProfile != "" || o.MutexProfile != "" { - errorExit("error: profiling not supported: FZF must be built with '-tags=pprof' to enable profiling") + return errors.New("error: profiling not supported: FZF must be built with '-tags=pprof' to enable profiling") } return nil } |
