HackIllinois / iOS

The Official iOS App of HackIllinois
University of Illinois/NCSA Open Source License
17 stars 10 forks source link

Improve Error Handling #540

Closed lasyaneti closed 11 months ago

lasyaneti commented 1 year ago

Really hard to debug iOS without checking API logs. Instead of doing print() to Console, display error to user with Alert.

image

Display these error messages as returned from API, also include STATUS 400

{
    "error": "CodeExpired"
}

https://github.com/HackIllinois/iOS/blame/8f29d0b5b0d71a26222e30d8dc1e01832104c090/HackIllinois/ViewControllers/HIScanAttendanceViewController.swift#L249C18-L249C18