forked from shadowfacts/Tusker
More error reporting tweaks
This commit is contained in:
parent
c5a25eecf1
commit
b1374b12a3
|
@ -71,11 +71,15 @@ extension ToastConfiguration {
|
||||||
event.tags!["error_type"] = "invalid_response"
|
event.tags!["error_type"] = "invalid_response"
|
||||||
case .invalidModel(let error):
|
case .invalidModel(let error):
|
||||||
event.tags!["error_type"] = "invalid_model"
|
event.tags!["error_type"] = "invalid_model"
|
||||||
event.tags!["underlying_error"] = String(describing: error)
|
event.extra = [
|
||||||
|
"underlying_error": String(describing: error)
|
||||||
|
]
|
||||||
case .mastodonError(let code, let error):
|
case .mastodonError(let code, let error):
|
||||||
event.tags!["error_type"] = "mastodon_error"
|
event.tags!["error_type"] = "mastodon_error"
|
||||||
event.tags!["response_code"] = "\(code)"
|
event.tags!["response_code"] = "\(code)"
|
||||||
event.tags!["underlying_error"] = error
|
event.extra = [
|
||||||
|
"underlying_error": String(describing: error)
|
||||||
|
]
|
||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue