mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-17 08:47:49 +00:00
make frontend -> backend errors actually work
This commit is contained in:
@@ -70,8 +70,14 @@ export default function TestingVersionList() {
|
||||
<Focusable style={{ height: '40px', marginLeft: 'auto', display: 'flex' }}>
|
||||
<DialogButton
|
||||
style={{ height: '40px', minWidth: '60px', marginRight: '10px' }}
|
||||
onClick={() => {
|
||||
downloadTestingVersion(version.id, version.head_sha);
|
||||
onClick={async () => {
|
||||
try {
|
||||
await downloadTestingVersion(version.id, version.head_sha);
|
||||
} catch (e) {
|
||||
if (e instanceof Error) {
|
||||
DeckyPluginLoader.toaster.toast({ title: 'Error Installing PR', body: e.message });
|
||||
}
|
||||
}
|
||||
setSetting('branch', UpdateBranch.Testing);
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user