aboutsummaryrefslogtreecommitdiff
path: root/internal/game/sys_technology.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/sys_technology.go')
-rw-r--r--internal/game/sys_technology.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/game/sys_technology.go b/internal/game/sys_technology.go
index 6f03276..edf0051 100644
--- a/internal/game/sys_technology.go
+++ b/internal/game/sys_technology.go
@@ -46,7 +46,7 @@ func (g *Game) LoadTechs() error {
if err := behavior.WalkYAMLDir(dir, func(path, id string, data []byte) error {
var t TechDef
if err := yaml.Unmarshal(data, &t); err != nil {
- return nil
+ return fmt.Errorf("%s: %w", path, err)
}
t.ID = id
AllTechs = append(AllTechs, &t)