From d17d82a67eca1da8312dd39c585208bb61a2c71a Mon Sep 17 00:00:00 2001 From: Robert Attard Date: Fri, 9 Dec 2022 11:13:42 -0500 Subject: [PATCH] v0.5.1: fix error message for missing function --- gleam.toml | 2 +- src/runners.gleam | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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") }