Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
d4a7216c
Unverified
Commit
d4a7216c
authored
Aug 07, 2024
by
Chua Chee Seng
Committed by
GitHub
Aug 06, 2024
Browse files
Fixed invalid option provided not displaying the invalid option name problem. (#6202)
parent
a4fdd03c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
api/types.go
api/types.go
+1
-1
No files found.
api/types.go
View file @
d4a7216c
...
@@ -504,7 +504,7 @@ func (opts *Options) FromMap(m map[string]interface{}) error {
...
@@ -504,7 +504,7 @@ func (opts *Options) FromMap(m map[string]interface{}) error {
for
key
,
val
:=
range
m
{
for
key
,
val
:=
range
m
{
opt
,
ok
:=
jsonOpts
[
key
]
opt
,
ok
:=
jsonOpts
[
key
]
if
!
ok
{
if
!
ok
{
slog
.
Warn
(
"invalid option provided"
,
"option"
,
opt
.
Name
)
slog
.
Warn
(
"invalid option provided"
,
"option"
,
key
)
continue
continue
}
}
...
...
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