dati

data and template interface
git clone git://git.gearsix.net/dati
Log | Files | Refs | Atom | README | LICENSE

commit 59550a7975485faad840fb4360a3015b39f3523b
parent eb0e1c206c0306f419521b716ea9275516e086b0
Author: gearsix <gearsix@tuta.io>
Date:   Sat, 10 Apr 2021 23:45:52 +0100

improved error messaging

Diffstat:
Mdata.go | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/data.go b/data.go @@ -84,6 +84,9 @@ func LoadDataFile(path string) (d Data, e error) { d, e = LoadData(getDataType(path), f) } f.Close() + if e != nil { + e = fmt.Errorf("failed to load data '%s':", e.Error()) + } return }