More informing error

This commit is contained in:
aditya-K2 2021-11-12 01:25:40 +05:30
parent 0fa68fe7b0
commit 836e67a24d
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ func GetAsciiValue(s string) (int, error) {
if (int(char) >= 65 && int(char) <= 90) || (int(char) >= 97 && int(char) <= 122) {
return int(char), nil
} else {
return -1, errors.New("Not Found")
return -1, errors.New("Not Found in the range")
}
} else if val, ok := SPECIAL_KEYS[s]; ok {
return val, nil