Skip to content

Commit

Permalink
v0.5.1: fix error message for missing function
Browse files Browse the repository at this point in the history
  • Loading branch information
TanklesXL committed Dec 9, 2022
1 parent 6d3d548 commit d17d82a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gleam.toml
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion src/runners.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit d17d82a

Please sign in to comment.