Fixing crash

This commit is contained in:
Alex Yatskov 2015-12-21 20:18:09 +09:00
parent 046249a524
commit caf9644d50
2 changed files with 2 additions and 2 deletions

View File

@ -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()
}

View File

@ -79,7 +79,7 @@ type Context interface {
}
type Error struct {
path string
file File
err error
}