be fussier about boot key; log more problems

This commit is contained in:
Paul Fitzpatrick
2024-05-15 16:17:57 -04:00
parent 19f40085fa
commit 9947eabdbc
3 changed files with 29 additions and 7 deletions

View File

@@ -1,3 +1,4 @@
import { reportError } from 'app/client/models/errors';
import { BootProbeIds, BootProbeInfo, BootProbeResult } from 'app/common/BootProbe';
import { InstallAPI } from 'app/common/InstallAPI';
import { getGristConfig } from 'app/common/urlUtils';
@@ -32,7 +33,7 @@ export class AdminChecks {
const config = getGristConfig();
const errMessage = config.errMessage;
if (!errMessage) {
const _probes = await this._installAPI.getChecks().catch(() => undefined);
const _probes = await this._installAPI.getChecks().catch(reportError);
if (!this._parent.isDisposed()) {
// Currently, probes are forbidden if not admin.
// TODO: May want to relax this to allow some probes that help