Fix PK member lookup error messages
This commit is contained in:
@@ -148,10 +148,10 @@ async function fetchMessage(messageID) {
|
|||||||
try {
|
try {
|
||||||
var res = await fetch(`https://api.pluralkit.me/v2/messages/${messageID}`)
|
var res = await fetch(`https://api.pluralkit.me/v2/messages/${messageID}`)
|
||||||
if (res.ok) return res.json()
|
if (res.ok) return res.json()
|
||||||
var errorGetter = res.json
|
var errorGetter = () => res.json()
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// Catch any network issues too.
|
// Catch any network issues too.
|
||||||
errorGetter = e.toString
|
errorGetter = () => e.toString()
|
||||||
}
|
}
|
||||||
|
|
||||||
// I think the backend needs some time to update.
|
// I think the backend needs some time to update.
|
||||||
|
Reference in New Issue
Block a user