From e8405f40fe2eb3675f1cb4f69e825eff5f13f269 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 7 May 2024 01:06:42 +0900 Subject: Refactor the code so that fzf can be used as a library (#3769) --- src/options_no_pprof.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/options_no_pprof.go') 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 } -- cgit v1.2.3