forked from toolshed/abra
		
	fix: catch multiple containers correctly
This commit is contained in:
		| @ -64,10 +64,10 @@ var appRunCommand = &cli.Command{ | ||||
| 			logrus.Fatal(err) | ||||
| 		} | ||||
|  | ||||
| 		switch len(containers) { | ||||
| 		case 0: | ||||
| 		if len(containers) == 0 { | ||||
| 			logrus.Fatalf("no containers matching '%s' found?", stackAndServiceName) | ||||
| 		case 1: | ||||
| 		} | ||||
| 		if len(containers) > 1 { | ||||
| 			logrus.Fatalf("expected 1 container matching '%s' but got %d", stackAndServiceName, len(containers)) | ||||
| 		} | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user