Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
qiuqunfeng
waf-console
Commits
26d33762
Commit
26d33762
authored
Jun 05, 2025
by
qiuqunfeng
Browse files
Fix error message for missing Elasticsearch URL configuration
parent
5f22de38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
internal/store/es.go
internal/store/es.go
+1
-1
No files found.
internal/store/es.go
View file @
26d33762
...
@@ -59,7 +59,7 @@ func CreateEsClientFromConfig(config *config.ElasticsearchConfig) (*es.Client, e
...
@@ -59,7 +59,7 @@ func CreateEsClientFromConfig(config *config.ElasticsearchConfig) (*es.Client, e
var
opts
[]
es
.
ClientOptionFunc
var
opts
[]
es
.
ClientOptionFunc
if
config
.
Url
==
""
{
if
config
.
Url
==
""
{
return
nil
,
fmt
.
Errorf
(
"
ES_URL
is not set"
)
return
nil
,
fmt
.
Errorf
(
"
es url
is not set"
)
}
}
opts
=
append
(
opts
,
es
.
SetURL
(
config
.
Url
))
opts
=
append
(
opts
,
es
.
SetURL
(
config
.
Url
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment