Add newlines after prints

This commit is contained in:
Draylar 2020-10-19 17:24:49 -05:00
parent 463848eaa0
commit 0656d794e1

View File

@ -152,9 +152,9 @@ func (m Mod) DownloadFile(dest io.Writer) error {
// Check if the hash of the downloaded file matches the expected hash. // Check if the hash of the downloaded file matches the expected hash.
// Also check if the uppercase version of the expected hash matches. // Also check if the uppercase version of the expected hash matches.
if(strings.ToUpper(calculatedHash) != m.Download.Hash) { 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 { } 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 return nil