Skip to content
This repository was 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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy