refactored overlay class
overlay.GetOverlay(name) returns now an error if the overlay doesn't exist. This is the most canonical way to act if there is no overlay.
This commit is contained in:
committed by
Jonathon Anderson
parent
c17fe8d512
commit
6f4fd60d8f
@@ -6,5 +6,6 @@ import (
|
||||
)
|
||||
|
||||
func CobraRunE(cmd *cobra.Command, args []string) (err error) {
|
||||
return overlay.GetSiteOverlay(args[0]).Create()
|
||||
_, err = overlay.Create(args[0])
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user