diff --git a/gleam.toml b/gleam.toml index 5908135..e295e46 100644 --- a/gleam.toml +++ b/gleam.toml @@ -1,5 +1,5 @@ name = "gladvent" -version = "0.5.0" +version = "0.5.1" repository = { type = "github", user = "TanklesXL", repo = "gladvent" } description = "An Advent Of Code runner for gleam" licences = ["Apache-2.0"] diff --git a/src/runners.gleam b/src/runners.gleam index d943ca5..f3f5911 100644 --- a/src/runners.gleam +++ b/src/runners.gleam @@ -55,7 +55,7 @@ fn function_exists( |> atom.create_from_string |> do_function_exists(mod, _) |> result.replace_error(snag.new( - "module " <> days_dir <> filename <> " does not define a \"pub fn " <> func_name <> "(String) -> Int\"", + "module " <> days_dir <> filename <> " does not export a function \"" <> func_name <> "/1\"", )) |> snag.context("function missing") }