From 956ca84a66601b5f4cd34d02ff309620edd64d21 Mon Sep 17 00:00:00 2001 From: Esteban Blanc Date: Mon, 13 Dec 2021 16:22:52 +0100 Subject: [PATCH] misc: Fix error msg on missing feature Co-authored-by: CohenArthur --- src/builtins.rs | 2 +- src/instruction/function_call.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/builtins.rs b/src/builtins.rs index ba03b0d0..8497285f 100644 --- a/src/builtins.rs +++ b/src/builtins.rs @@ -90,7 +90,7 @@ fn ffi_link_with(ctx: &mut Context, args: Args) -> Option { 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 diff --git a/src/instruction/function_call.rs b/src/instruction/function_call.rs index 250c00c0..69a8ddda 100644 --- a/src/instruction/function_call.rs +++ b/src/instruction/function_call.rs @@ -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