We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92bb293 commit f4f29afCopy full SHA for f4f29af
internal/boxcli/add.go
@@ -10,10 +10,9 @@ import (
10
"github.com/spf13/cobra"
11
"go.jetpack.io/devbox"
12
"go.jetpack.io/devbox/internal/boxcli/usererr"
13
- "go.jetpack.io/devbox/internal/nix"
14
)
15
16
-const toSearchForPackages = "To search for packages use https://search.nixos.org/packages"
+const toSearchForPackages = "To search for packages, use the `devbox search` command"
17
18
type addCmdFlags struct {
19
config configFlags
@@ -37,7 +36,7 @@ func addCmd() *cobra.Command {
37
36
return nil
38
}
39
err := addCmdFunc(cmd, args, flags)
40
- if errors.Is(err, nix.ErrPackageNotFound) {
+ if err != nil {
41
return usererr.New("%s\n\n%s", err, toSearchForPackages)
42
43
return err
0 commit comments