Improve error messaging for startup database error

This commit is contained in:
ayumi-signal
2025-03-24 10:19:02 -07:00
committed by GitHub
parent 3b04e05da1
commit c94849d3a1
4 changed files with 61 additions and 17 deletions

View File

@@ -0,0 +1,17 @@
// Copyright 2025 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { nativeImage } from 'electron';
import type { NativeImage } from 'electron';
import { join } from 'path';
export function getAppErrorIcon(): NativeImage {
const iconPath = join(
__dirname,
'..',
'..',
'images',
'app-icon-with-error.png'
);
return nativeImage.createFromPath(iconPath);
}