Skip to content

Commit

Permalink
chore: warning instead of panic
Browse files Browse the repository at this point in the history
  • Loading branch information
saffage committed Jun 14, 2024
1 parent 28b53ae commit fec7cf6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cgen/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/elliotchance/orderedmap/v2"
"github.com/saffage/jet/ast"
"github.com/saffage/jet/checker"
"github.com/saffage/jet/internal/report"
)

type generator struct {
Expand Down Expand Up @@ -61,7 +62,7 @@ func (gen *generator) defs(
gen.defs(sym.Defs, sym.Scope, true)

default:
panic(fmt.Sprintf("not implemented (%T)", sym))
report.Warningf("not implemented (%T)", sym)
}
}

Expand Down

0 comments on commit fec7cf6

Please sign in to comment.