From 4bcb584e421e5bb0305791ff21649beddec68514 Mon Sep 17 00:00:00 2001 From: Oscar Campos Date: Fri, 28 Nov 2014 00:49:07 +0000 Subject: [PATCH] fixed wrong formats --- cache/path.go | 2 +- cache/sha1sum.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cache/path.go b/cache/path.go index c01b342..142f405 100644 --- a/cache/path.go +++ b/cache/path.go @@ -66,7 +66,7 @@ func downloadAndExtract(ver, url, expected_sha1 string) error { if resp.StatusCode != 200 { if resp.StatusCode == 400 { - log.Fatal("Version %s can't be found!\n", ver) + log.Fatalf("Version %s can't be found!\n", ver) } return fmt.Errorf("%s", resp.Status) } diff --git a/cache/sha1sum.go b/cache/sha1sum.go index 29f974f..c61fe46 100644 --- a/cache/sha1sum.go +++ b/cache/sha1sum.go @@ -61,7 +61,7 @@ func generateManifest(ver string) error { fileName := filepath.Join(versionPath, ".vengo-manifest") file, err := os.OpenFile(fileName, os.O_CREATE|os.O_RDWR|os.O_TRUNC, 0644) if err != nil { - return fmt.Errorf("while generating manifest:", err) + return fmt.Errorf("while generating manifest: %s", err) } file.WriteString(fmt.Sprintf("%s\n", strings.Join(manifest, "\n"))) file.Close()