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
1adfa675
"docs/vscode:/vscode.git/clone" did not exist on "054837684e8c4e3ad3ef74919a71b906cde77700"
Unverified
Commit
1adfa675
authored
Sep 06, 2023
by
Patrick Devine
Committed by
GitHub
Sep 06, 2023
Browse files
tighten up the error string for `ollama show` flags (#476)
parent
790d24eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cmd/cmd.go
cmd/cmd.go
+2
-2
No files found.
cmd/cmd.go
View file @
1adfa675
...
...
@@ -281,9 +281,9 @@ func ShowHandler(cmd *cobra.Command, args []string) error {
}
if
flagsSet
>
1
{
return
errors
.
New
(
"only one of 'license', 'modelfile', 'parameters', 'system', or 'template' can be s
et
"
)
return
errors
.
New
(
"only one of '
--
license', '
--
modelfile', '
--
parameters', '
--
system', or '
--
template' can be s
pecified
"
)
}
else
if
flagsSet
==
0
{
return
errors
.
New
(
"one of 'license', 'modelfile', 'parameters', 'system', or 'template' must be s
et
"
)
return
errors
.
New
(
"one of '
--
license', '
--
modelfile', '
--
parameters', '
--
system', or '
--
template' must be s
pecified
"
)
}
req
:=
api
.
ShowRequest
{
Name
:
args
[
0
]}
...
...
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