From 0656d794e196cda48679353116010a011cacd4c7 Mon Sep 17 00:00:00 2001 From: Draylar <samuelhimes@gmail.com> Date: Mon, 19 Oct 2020 17:24:49 -0500 Subject: [PATCH] Add newlines after prints --- core/mod.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/mod.go b/core/mod.go index d955bc5..d60f260 100644 --- a/core/mod.go +++ b/core/mod.go @@ -152,9 +152,9 @@ func (m Mod) DownloadFile(dest io.Writer) error { // Check if the hash of the downloaded file matches the expected hash. // Also check if the uppercase version of the expected hash matches. if(strings.ToUpper(calculatedHash) != m.Download.Hash) { - return errors.New(fmt.Sprintf("Hash of saved file %s only matches when uppercased. Consider changing this to prevent future issues.", m.GetFilePath())) + return errors.New(fmt.Sprintf("Hash of saved file %s only matches when uppercased. Consider changing this to prevent future issues.\n", m.GetFilePath())) } else if calculatedHash != m.Download.Hash { - return errors.New(fmt.Sprintf("hash of saved file is invalid!\n .toml hash: %s\n download hash: %s", calculatedHash, m.Download.Hash)) + return errors.New(fmt.Sprintf("hash of saved file is invalid!\n .toml hash: %s\n download hash: %s\n", calculatedHash, m.Download.Hash)) } return nil