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
532b4d36
Commit
532b4d36
authored
Oct 23, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
packer: don't panic if can't write to UI
parent
e99e4b46
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
CHANGELOG.md
CHANGELOG.md
+1
-1
packer/ui.go
packer/ui.go
+3
-3
No files found.
CHANGELOG.md
View file @
532b4d36
...
...
@@ -2,10 +2,10 @@
BUG FIXES:
*
core: Won't panic when writing to a bad pipe. [GH-560]
*
common/uuid: Use cryptographically secure PRNG when generating
UUIDs. [GH-552]
## 0.3.10 (October 20, 2013)
FEATURES:
...
...
packer/ui.go
View file @
532b4d36
...
...
@@ -210,7 +210,7 @@ func (rw *BasicUi) Say(message string) {
log
.
Printf
(
"ui: %s"
,
message
)
_
,
err
:=
fmt
.
Fprint
(
rw
.
Writer
,
message
+
"
\n
"
)
if
err
!=
nil
{
panic
(
err
)
log
.
Printf
(
"[ERR] Failed to write to UI: %s"
,
err
)
}
}
...
...
@@ -221,7 +221,7 @@ func (rw *BasicUi) Message(message string) {
log
.
Printf
(
"ui: %s"
,
message
)
_
,
err
:=
fmt
.
Fprint
(
rw
.
Writer
,
message
+
"
\n
"
)
if
err
!=
nil
{
panic
(
err
)
log
.
Printf
(
"[ERR] Failed to write to UI: %s"
,
err
)
}
}
...
...
@@ -232,7 +232,7 @@ func (rw *BasicUi) Error(message string) {
log
.
Printf
(
"ui error: %s"
,
message
)
_
,
err
:=
fmt
.
Fprint
(
rw
.
Writer
,
message
+
"
\n
"
)
if
err
!=
nil
{
panic
(
err
)
log
.
Printf
(
"[ERR] Failed to write to UI: %s"
,
err
)
}
}
...
...
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