mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
fix: ensure errors are logged
This commit is contained in:
parent
a109e3078d
commit
13ad57d49f
1 changed files with 6 additions and 4 deletions
10
app.go
10
app.go
|
|
@ -70,7 +70,11 @@ func (a *App) Run() error {
|
|||
}
|
||||
|
||||
a.logLevel = "error"
|
||||
return a.start()
|
||||
err := a.start()
|
||||
if err != nil {
|
||||
a.log.Error(err.Error())
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
func (a *App) start() error {
|
||||
|
|
@ -114,9 +118,7 @@ func (a *App) start() error {
|
|||
a.renderer.AddJSList(a.jsCache)
|
||||
|
||||
// Run the renderer
|
||||
a.renderer.Run()
|
||||
|
||||
return nil
|
||||
return a.renderer.Run()
|
||||
}
|
||||
|
||||
// Bind allows the user to bind the given object
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue