Make template more resilient on initial installation
This commit is contained in:
parent
1f8f3cf2fe
commit
63d44c35fb
@ -2,7 +2,7 @@ import { getUniqueTagsCached } from '@/photo/cache';
|
|||||||
import AdminBatchEditPanelClient from './AdminBatchEditPanelClient';
|
import AdminBatchEditPanelClient from './AdminBatchEditPanelClient';
|
||||||
|
|
||||||
export default async function AdminBatchEditPanel() {
|
export default async function AdminBatchEditPanel() {
|
||||||
const uniqueTags = await getUniqueTagsCached();
|
const uniqueTags = await getUniqueTagsCached().catch(() => []);
|
||||||
return (
|
return (
|
||||||
<AdminBatchEditPanelClient {...{ uniqueTags }} />
|
<AdminBatchEditPanelClient {...{ uniqueTags }} />
|
||||||
);
|
);
|
||||||
|
|||||||
@ -119,7 +119,10 @@ const safelyQueryPhotos = async <T>(
|
|||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log(`sql get error: ${e.message} `);
|
if (e.message !== 'The server does not support SSL connections') {
|
||||||
|
// Avoid re-logging errors on initial installation
|
||||||
|
console.log(`sql get error: ${e.message} `);
|
||||||
|
}
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user