More informing error

This commit is contained in:
aditya-K2 2021-11-12 01:25:40 +05:30
parent 0fa68fe7b0
commit 836e67a24d

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