Skip to content

Commit

Permalink
Improve error message if NIF can't be loaded. Closes #8
Browse files Browse the repository at this point in the history
  • Loading branch information
kipcole9 committed Feb 27, 2023
1 parent e7ed7a4 commit c332101
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# Changelog

## Ex_Cldr_Collation v0.7.0
## Ex_Cldr_Collation v0.7.2

This is the changelog for Cldr_collation v0.7.2 released on February 8th, 2023. For older changelogs please consult the release tag on [GitHub](https://github.com/elixir-cldr/cldr_collation/tags)

### Bug fixes

* Makes the `Makefile` more resilient by exiting if `pkg-config` isn't installed and therefore `ICU_LIBS` is empty. Previously this would fail silently and an unclear runtime error would be reported.

* Improved the error message if the NIF can't be loaded. Thanks to @linusdm. Closes #8.

## Ex_Cldr_Collation v0.7.1

This is the changelog for Cldr_collation v0.7.1 released on February 24th, 2023. For older changelogs please consult the release tag on [GitHub](https://github.com/elixir-cldr/cldr_collation/tags)

Expand Down
2 changes: 1 addition & 1 deletion lib/cldr_collation.ex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ defmodule Cldr.Collation do
def init do
so_path = :code.priv_dir(:ex_cldr_collation) ++ '/ucol'
num_scheds = :erlang.system_info(:schedulers)
:ok = :erlang.load_nif(so_path, num_scheds)
:erlang.load_nif(so_path, num_scheds)
end

@insensitive 1
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule CldrCollation.MixProject do
use Mix.Project

@version "0.7.1"
@version "0.7.2"

def project do
[
Expand Down

0 comments on commit c332101

Please sign in to comment.