KIKO (@KaylonChan)写了一早上的代码一直报错,求助大佬 中发帖

import Foundation 
enum KfcError: Error {
case insufficientAmount(message: String)
}
func kfcOffer(thankAmount: Int) throws {
if thankAmount >= 50 {
print(“KFC Crazy Thursday Offer Accepted! 🍗”)
} else {
throw KfcError.insufficientAmount(message: “Whoever gives me 50 CNY, I will thank him and get KFC!”)
}
}
do {
try kfcOffer(thankAmount: 0)
} catch KfcError.insufficientAmount(let messa...