Test startup checks for serve command

This commit is contained in:
jola5
2017-01-29 00:05:25 +01:00
parent 3040e7360a
commit edffa24658
4 changed files with 35 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ func aptlyAPIServe(cmd *commander.Command, args []string) error {
}
if unix.Access(context.Config().RootDir, unix.W_OK) != nil {
return fmt.Errorf("Configured rootDir '%s' inaccesible, check access rights", context.Config().RootDir)
return fmt.Errorf("Configured rootDir '%s' is inaccessible, check access rights", context.Config().RootDir)
}
listen := context.Flags().Lookup("listen").Value.String()