Skip to content

Commit

Permalink
misc: Fix error msg on missing feature
Browse files Browse the repository at this point in the history
Co-authored-by: CohenArthur <arthur.cohen@epita.fr>
  • Loading branch information
Skallwar and CohenArthur authored Dec 13, 2021
1 parent 39b6b70 commit 956ca84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/builtins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ fn ffi_link_with(ctx: &mut Context, args: Args) -> Option<ObjectInstance> {
use crate::{ErrKind, Error};

ctx.error(Error::new(ErrKind::Context).with_msg(format!(
"Jinko is not compiled with FFI support. `t_call_invalid_builtin` is disable"
"jinko is not compiled with FFI support. `link_with()` is disabled"
)));

None
Expand Down
2 changes: 1 addition & 1 deletion src/instruction/function_call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ impl FunctionCall {
#[cfg(not(feature = "ffi"))]
{
ctx.error(Error::new(ErrKind::Context).with_msg(format!(
"Jinko is not compiled with FFI support. Cannot call `{}` external function",
"jinko is not compiled with FFI support. Cannot call `{}` external function",
dec.name()
)));
None
Expand Down

0 comments on commit 956ca84

Please sign in to comment.