Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Staff Check-in Error Handling Fix #601

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,13 @@ extension HIScanAttendanceViewController: AVCaptureMetadataOutputObjectsDelegate
alertMessage = "You have successfully checked in."
self.respondingToQRCodeFound = false
case "QR code expired.":
alertMessage = "The code for this event has expired."
alertMessage = "The check-in code for this event has expired."
case "NotFound":
alertMessage = "Could not find event."
alertMessage = "The event could not be found. Ensure the QR code is correct and try again."
case "Invalid token.":
alertMessage = "Invalid token."
alertMessage = "Invalid token. You do not have the necessary permissions to check in."
case "Internal server error.":
alertMessage = "Internal server error."
alertMessage = "An internal server error occurred. Please try again later."
default:
alertMessage = "Something isn't quite right."
}
Expand Down Expand Up @@ -270,7 +270,7 @@ extension HIScanAttendanceViewController: AVCaptureMetadataOutputObjectsDelegate
self.handleStaffCheckInAlert(status: "Invalid token.")
} else if rawErrorString.contains("code: 500") {
self.handleStaffCheckInAlert(status: "Internal server error.")
} else if rawErrorString.contains("code: 402") {
} else if rawErrorString.contains("code: 404") {
self.handleStaffCheckInAlert(status: "NotFound")
} else {
self.handleStaffCheckInAlert(status: "Something isn't quite right.")
Expand Down
Loading