5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 19:31:20 +08:00
wails/v3/pkg/application/errors.go
2023-01-18 21:42:49 +11:00

17 lines
500 B
Go

package application
import (
"fmt"
"os"
)
func Fatal(message string, args ...interface{}) {
println("*********************** FATAL ***********************")
println("There has been a catastrophic failure in your application.")
println("Please report this error at https://github.com/wailsapp/wails/issues")
println("******************** Error Details ******************")
println(fmt.Sprintf(message, args...))
println("*********************** FATAL ***********************")
os.Exit(1)
}