Skip to content

Commit

Permalink
Return error
Browse files Browse the repository at this point in the history
  • Loading branch information
darashi committed Jan 22, 2016
1 parent 225c3e9 commit 76fa6c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion new/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func extractBlueprintAsset(dir, name string, params *parameters) error {

s := strings.SplitN(name, "/", 2)
if len(s) != 2 {
fmt.Errorf("unexpected name: %s", name)
return fmt.Errorf("unexpected name: %s", name)
}
destName := s[1]
err := os.MkdirAll(_filePath(dir, path.Dir(destName)), os.FileMode(0755))
Expand Down

0 comments on commit 76fa6c6

Please sign in to comment.