Skip to content

Commit 373b794

Browse files
committed
Add missing error check
1 parent aca81a6 commit 373b794

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dist/msix/build-unsigned-msix.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ func MakeMapping(msixSourcePath string, mappingFilePath string) error {
107107

108108
mappingTemplatePath := filepath.Join(msixSourcePath, "mapping.template.txt")
109109
mappingTemplateSource, err := ioutil.ReadFile(mappingTemplatePath)
110+
if err != nil {
111+
return err
112+
}
110113
tmpl, err := template.New(mappingTemplatePath).Parse(string(mappingTemplateSource))
111114
if err != nil {
112115
return err

0 commit comments

Comments
 (0)