From 58ac87f8d4e241dcb31fc3efc7c506f4fc16dba1 Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Wed, 19 Jun 2024 09:04:33 -0400 Subject: [PATCH] match error case from `Macro.Env.expand_import/5` --- lib/spitfire/env.ex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/spitfire/env.ex b/lib/spitfire/env.ex index b44e830..50ee68d 100644 --- a/lib/spitfire/env.ex +++ b/lib/spitfire/env.ex @@ -318,6 +318,9 @@ defmodule Spitfire.Env do :error -> expand_local(meta, fun, args, state, env) + + {:error, :not_found} -> + expand_local(meta, fun, args, state, env) end end