From caf9644d5085118575f0d77fc683d5df96324728 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Mon, 21 Dec 2015 20:18:09 +0900 Subject: [PATCH] Fixing crash --- goldsmith.go | 2 +- types.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/goldsmith.go b/goldsmith.go index d954237..98f0962 100644 --- a/goldsmith.go +++ b/goldsmith.go @@ -126,7 +126,7 @@ func (gs *goldsmith) referenceFile(path string) { func (gs *goldsmith) fault(f *file, err error) { gs.errorMtx.Lock() - gs.errors = append(gs.errors, &Error{f.path, err}) + gs.errors = append(gs.errors, &Error{f, err}) gs.errorMtx.Unlock() } diff --git a/types.go b/types.go index 1a59c31..2e2bcfe 100644 --- a/types.go +++ b/types.go @@ -79,7 +79,7 @@ type Context interface { } type Error struct { - path string + file File err error }