Merge PR #1227: Set all Error strings 1st letters to lowercase. Fixes issue #1154

This commit is contained in:
David Kajpust
2018-06-13 21:13:22 +02:00
committed by Christopher Goes
parent 157047c8a3
commit ec2fedd36c
28 changed files with 107 additions and 107 deletions
+1 -1
View File
@@ -16,5 +16,5 @@ const (
// ErrIncorrectCoolAnswer - Error returned upon an incorrect guess
func ErrIncorrectCoolAnswer(codespace sdk.CodespaceType, answer string) sdk.Error {
return sdk.NewError(codespace, CodeIncorrectCoolAnswer, fmt.Sprintf("Incorrect cool answer: %v", answer))
return sdk.NewError(codespace, CodeIncorrectCoolAnswer, fmt.Sprintf("incorrect cool answer: %v", answer))
}
+8 -8
View File
@@ -23,21 +23,21 @@ const (
func codeToDefaultMsg(code CodeType) string {
switch code {
case CodeInvalidDifficulty:
return "Insuffient difficulty"
return "insuffient difficulty"
case CodeNonexistentDifficulty:
return "Nonexistent difficulty"
return "nonexistent difficulty"
case CodeNonexistentReward:
return "Nonexistent reward"
return "nonexistent reward"
case CodeNonexistentCount:
return "Nonexistent count"
return "nonexistent count"
case CodeInvalidProof:
return "Invalid proof"
return "invalid proof"
case CodeNotBelowTarget:
return "Not below target"
return "not below target"
case CodeInvalidCount:
return "Invalid count"
return "invalid count"
case CodeUnknownRequest:
return "Unknown request"
return "unknown request"
default:
return sdk.CodeToDefaultMsg(code)
}