Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

Fix parsing panic if variables are not defined #269

Merged
merged 3 commits into from
Sep 20, 2019
Merged

Conversation

yiranwang52
Copy link
Contributor

fix #266

@@ -70,6 +70,9 @@ func (d *baseDirective) replaceVars(vars map[string]string) error {
if err != nil {
return d.err(fmt.Errorf("Failed to replace variables in input: %s", err))
}
if len(replaced) == 0 {
return d.err(fmt.Errorf("Empty args after replacing variables: %s", err))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

err is nil

Yiran Wang added 2 commits September 19, 2019 21:14
@yiranwang52 yiranwang52 merged commit 27daadc into master Sep 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Panic on parsing malformed dockerfile
2 participants