Skip to content

Commit

Permalink
Better error message for fail match
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolas Sepos authored and thegrumpylion committed Mar 7, 2019
1 parent a9ea7e7 commit 1c3c442
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cli/connect.go
Expand Up @@ -85,7 +85,7 @@ func connectToFileNode(node *service.FileNode, args []string) error {
case *service.FileNode:
this, err := getUniqueFileNode(thisVal)
if err != nil {
return fmt.Errorf("get unique \"this\" node fail: %v", err)
return fmt.Errorf("get unique file node fail. please use better matching params: %v", err)
}
// default edge
if connectCmdFlags.edge == "" {
Expand Down Expand Up @@ -127,7 +127,7 @@ func connectToPackageNode(node *service.PackageNode, args []string) error {
case *service.FileNode:
this, err := getUniqueFileNode(thisVal)
if err != nil {
return fmt.Errorf("get unique \"this\" node fail: %v", err)
return fmt.Errorf("get unique file node fail. please use better matching params: %v", err)
}
// default edge
if connectCmdFlags.edge == "" {
Expand Down

0 comments on commit 1c3c442

Please sign in to comment.