mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 19:31:20 +08:00
17 lines
500 B
Go
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)
|
|
}
|