combine some warnings for cleaner logging

This commit is contained in:
Henry Jameson 2025-01-28 16:33:38 +02:00
parent 02cc040cd6
commit 55579bea55
2 changed files with 6 additions and 12 deletions

View file

@ -174,8 +174,7 @@ const getTOS = async ({ store }) => {
throw (res) throw (res)
} }
} catch (e) { } catch (e) {
console.warn("Can't load TOS") console.warn("Can't load TOS\n", e)
console.warn(e)
} }
} }
@ -189,8 +188,7 @@ const getInstancePanel = async ({ store }) => {
throw (res) throw (res)
} }
} catch (e) { } catch (e) {
console.warn("Can't load instance panel") console.warn("Can't load instance panel\n", e)
console.warn(e)
} }
} }
@ -220,8 +218,7 @@ const getStickers = async ({ store }) => {
throw (res) throw (res)
} }
} catch (e) { } catch (e) {
console.warn("Can't load stickers") console.warn("Can't load stickers\n", e)
console.warn(e)
} }
} }

View file

@ -315,8 +315,7 @@ const instance = {
}, {}) }, {})
commit('setInstanceOption', { name: 'emoji', value: injectRegionalIndicators(emoji) }) commit('setInstanceOption', { name: 'emoji', value: injectRegionalIndicators(emoji) })
} catch (e) { } catch (e) {
console.warn("Can't load static emoji") console.warn("Can't load static emoji\n", e)
console.warn(e)
} }
}, },
@ -383,8 +382,7 @@ const instance = {
throw (res) throw (res)
} }
} catch (e) { } catch (e) {
console.warn("Can't load custom emojis") console.warn("Can't load custom emojis\n", e)
console.warn(e)
} }
}, },
fetchEmoji ({ dispatch, state }) { fetchEmoji ({ dispatch, state }) {
@ -405,8 +403,7 @@ const instance = {
}) })
commit('setKnownDomains', result) commit('setKnownDomains', result)
} catch (e) { } catch (e) {
console.warn("Can't load known domains") console.warn("Can't load known domains\n", e)
console.warn(e)
} }
} }
} }