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
d25efe39
Unverified
Commit
d25efe39
authored
Mar 04, 2025
by
CYJiang
Committed by
GitHub
Mar 03, 2025
Browse files
cmd: add default err return for stop (#9458)
parent
36dfb906
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
cmd/cmd.go
cmd/cmd.go
+1
-0
No files found.
cmd/cmd.go
View file @
d25efe39
...
@@ -256,6 +256,7 @@ func StopHandler(cmd *cobra.Command, args []string) error {
...
@@ -256,6 +256,7 @@ func StopHandler(cmd *cobra.Command, args []string) error {
if
strings
.
Contains
(
err
.
Error
(),
"not found"
)
{
if
strings
.
Contains
(
err
.
Error
(),
"not found"
)
{
return
fmt
.
Errorf
(
"couldn't find model
\"
%s
\"
to stop"
,
args
[
0
])
return
fmt
.
Errorf
(
"couldn't find model
\"
%s
\"
to stop"
,
args
[
0
])
}
}
return
err
}
}
return
nil
return
nil
}
}
...
...
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