Attempt to fix unexpected EOF on Solaris

This commit is contained in:
2026-05-29 19:04:38 -04:00
parent ba4a2c8396
commit 8318b2e325
5 changed files with 39 additions and 11 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ func GenSanityCheck(path string, password []byte, zeroizePassword bool) error {
func RunSanityCheck(path string, password []byte) error {
encBytes, err := os.ReadFile(path)
if err != nil {
return errors.New("Failed to read sanity check file (" + path + ")")
return errors.New("unable to read sanity check file (" + path + "): " + err.Error())
}
decBytes, err := Decrypt(encBytes, password, false)
if err == nil {