Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
bc01d288
Commit
bc01d288
authored
May 08, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
command/build: More complete error handling
parent
95153413
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
command/build/command.go
command/build/command.go
+2
-2
No files found.
command/build/command.go
View file @
bc01d288
...
...
@@ -16,14 +16,14 @@ func (Command) Run(env packer.Environment, args []string) int {
// Read the file into a byte array so that we can parse the template
tplData
,
err
:=
ioutil
.
ReadFile
(
args
[
0
])
if
err
!=
nil
{
// TODO: Error message
env
.
Ui
()
.
Error
(
"Failed to read template file: %s
\n
"
,
err
.
Error
())
return
1
}
// Parse the template into a machine-usable format
_
,
err
=
packer
.
ParseTemplate
(
tplData
)
if
err
!=
nil
{
// TODO: error message
env
.
Ui
()
.
Error
(
"Failed to parse template: %s
\n
"
,
err
.
Error
())
return
1
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment