Spot the bug in the profile fallback

from Error handling
Swift 6.3.3 intermediate 4 min 1 issue to find

Find why this function can report a successful guest profile after an account load failed.

swift
func displayProfile(id: Int) -> String {
    do {
        return try loadProfile(id: id)
    } catch {
        print("profile load failed: \(error)")
        return "Guest"
    }
}
Open in playground
Report an error