Removes additional cert references and improves error messaging

This commit is contained in:
sloum 2020-07-03 15:04:16 -07:00
parent b6207c7b96
commit 328d16a191
2 changed files with 2 additions and 4 deletions

View File

@ -54,8 +54,6 @@ var defaultOptions = map[string]string{
"showimages": "true", "showimages": "true",
"telnetcommand": "telnet", "telnetcommand": "telnet",
"theme": "normal", // "normal", "inverted", "color" "theme": "normal", // "normal", "inverted", "color"
"tlscertificate": "",
"tlskey": "",
"webmode": "none", // "none", "gui", "lynx", "w3m", "elinks" "webmode": "none", // "none", "gui", "lynx", "w3m", "elinks"
} }

View File

@ -268,7 +268,7 @@ func Fetch(host, port, resource string, td *TofuDigest) ([]byte, error) {
case 5: case 5:
return make([]byte, 0), fmt.Errorf("[5] Permanent Failure.") return make([]byte, 0), fmt.Errorf("[5] Permanent Failure.")
case 6: case 6:
return make([]byte, 0), fmt.Errorf("[6] Client Certificate Required") return make([]byte, 0), fmt.Errorf("[6] Client Certificate Required (Unsupported)")
default: default:
return make([]byte, 0), fmt.Errorf("Invalid response status from server") return make([]byte, 0), fmt.Errorf("Invalid response status from server")
} }
@ -345,7 +345,7 @@ func Visit(host, port, resource string, td *TofuDigest) (Capsule, error) {
case 5: case 5:
return capsule, fmt.Errorf("[5] Permanent Failure. %s", header[1]) return capsule, fmt.Errorf("[5] Permanent Failure. %s", header[1])
case 6: case 6:
return capsule, fmt.Errorf("[6] Client Certificate Required") return capsule, fmt.Errorf("[6] Client Certificate Required (Unsupported)")
default: default:
return capsule, fmt.Errorf("Invalid response status from server") return capsule, fmt.Errorf("Invalid response status from server")
} }