Merge branch 'master' into ai/issue-79
All checks were successful
Test / test (push) Successful in 2s
All checks were successful
Test / test (push) Successful in 2s
This commit is contained in:
@@ -62,7 +62,12 @@ async function Load(dir, offset = 0) {
|
||||
? { ...page, files: [...listing.value.files, ...page.files] }
|
||||
: page;
|
||||
} catch (requestError) {
|
||||
error.value = t('foundry.errors.icons-unavailable');
|
||||
// The route answers every real failure with an i18n key in `msg`, but
|
||||
// axios rejects a non-2xx response, so this catch would otherwise blame
|
||||
// the bridge for anything at all — a campaign without a world address,
|
||||
// a folder that went missing. Read the reason off the response and say
|
||||
// that instead (Syndria98/dragonroll#74).
|
||||
error.value = t(requestError.response?.data?.msg || 'foundry.errors.icons-unavailable');
|
||||
} finally {
|
||||
loading.value = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user