Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (18 sloc) 435 Bytes
package fyne
import (
// LogError reports an error to the command line with the specified err cause,
// if not nil.
// The function also reports basic information about the code location.
func LogError(reason string, err error) {
log.Println("Fyne error: ", reason)
if err != nil {
log.Println(" Cause:", err)
_, file, line, ok := runtime.Caller(1)
if ok {
log.Printf(" At: %s:%d", file, line)
You can’t perform that action at this time.