mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-21 04:12:08 +03:00
fix(app): add spacing in restart handler
This commit is contained in:
@@ -319,11 +319,13 @@ export const ErrorPage: Component<ErrorPageProps> = (props) => {
|
||||
|
||||
async function restart() {
|
||||
setStore({ restarting: true, actionError: undefined })
|
||||
|
||||
// A service that failed to boot stays registered, so relaunching alone would reattach to it.
|
||||
const service =
|
||||
errorDescriptionKey(props.error) === "error.page.description.localServerStartup"
|
||||
? platform.restartService
|
||||
: undefined
|
||||
|
||||
await (service ? service() : platform.restart()).catch((err) => {
|
||||
setStore({ restarting: false, actionError: formatError(err, language.t) })
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user