fix: better error if not exists

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos Alexandro Becker
2020-04-03 16:21:29 -03:00
parent 3aaec5015b
commit 92b9582ff9
+3
View File
@@ -263,6 +263,9 @@ func resolveSourceContext() error {
}
if ctxSubPath != "" {
opts.SrcContext = filepath.Join(opts.SrcContext, ctxSubPath)
if _, err := os.Stat(opts.SrcContext); os.IsNotExist(err) {
return err
}
}
logrus.Debugf("Build context located at %s", opts.SrcContext)
return nil