From 02500e0930257731a3efb6f130db25eff1e128b9 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Tue, 26 Jan 2021 06:40:18 +1100 Subject: [PATCH] Update vanilla template with new API --- v2/internal/templates/templates/vanilla/main.tmpl.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/v2/internal/templates/templates/vanilla/main.tmpl.go b/v2/internal/templates/templates/vanilla/main.tmpl.go index 1dc26525..efceec4d 100644 --- a/v2/internal/templates/templates/vanilla/main.tmpl.go +++ b/v2/internal/templates/templates/vanilla/main.tmpl.go @@ -2,14 +2,21 @@ package main import ( "github.com/wailsapp/wails/v2" + "log" ) func main() { // Create application with options - app := wails.CreateApp("{{.ProjectName}}", 1024, 768) + app, err := wails.CreateApp("{{.ProjectName}}", 1024, 768) + if err != nil { + log.Fatal(err) + } app.Bind(newBasic()) - app.Run() + err = app.Run() + if err != nil { + log.Fatal(err) + } }