Skip to content

Commit 4de314b

Browse files
Return on error when writing daemon.json to disk:
Forward progress without the daemon.json is not desired behavior. Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
1 parent 2b0ad0c commit 4de314b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hook-docker/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func main() {
5151
panic(err)
5252
}
5353
if err := d.writeToDisk(filepath.Join(path, "daemon.json")); err != nil {
54-
fmt.Println("Failed to write docker config:", err)
54+
panic(fmt.Sprintf("Failed to write docker config: %v", err))
5555
}
5656

5757
// Build the command, and execute

0 commit comments

Comments
 (0)