Fix PK member lookup error messages
This commit is contained in:
parent
b0ffb45e55
commit
d326894b8a
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue