mirror of
https://github.com/gren-lang/compiler.git
synced 2024-09-11 08:45:42 +03:00
Improve error message when missing package arguments.
This commit is contained in:
parent
f27662cf63
commit
dfabb5ba4b
@ -278,16 +278,7 @@ argErrorToDocs argError =
|
||||
examples <- makeExamples
|
||||
return
|
||||
[ P.fillSep
|
||||
[ "The",
|
||||
"arguments",
|
||||
"you",
|
||||
"have",
|
||||
"are",
|
||||
"fine,",
|
||||
"but",
|
||||
"in",
|
||||
"addition,",
|
||||
"I",
|
||||
[ "I",
|
||||
"was",
|
||||
"expecting",
|
||||
"a",
|
||||
|
@ -93,8 +93,8 @@ package =
|
||||
{ _singular = "package",
|
||||
_plural = "packages",
|
||||
_parser = parsePackage,
|
||||
_suggest = (\_ -> return []),
|
||||
_examples = \_ -> return []
|
||||
_suggest = (\_ -> return ["gren-lang/browser"]),
|
||||
_examples = \_ -> return ["gren-lang/browser"]
|
||||
}
|
||||
|
||||
parsePackage :: String -> Maybe Pkg.Name
|
||||
|
Loading…
Reference in New Issue
Block a user