From 113c067c96b8be5ceb9cdd1a7922e9ca63de7c79 Mon Sep 17 00:00:00 2001 From: Add00 Date: Sun, 27 Aug 2023 23:39:32 -0400 Subject: [PATCH] updated path error messages --- repl/lib_fileio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repl/lib_fileio.c b/repl/lib_fileio.c index 4394b47..de62980 100644 --- a/repl/lib_fileio.c +++ b/repl/lib_fileio.c @@ -715,7 +715,7 @@ static int nativeMode(Toy_Interpreter* interpreter, Toy_LiteralArray* arguments) static int nativePath(Toy_Interpreter* interpreter, Toy_LiteralArray* arguments) { if (arguments->count != 1) { - interpreter->errorOutput("Too many arguments name() expects zero arguments\n"); + interpreter->errorOutput("Too many arguments path() expects zero arguments\n"); return -1; } @@ -729,7 +729,7 @@ static int nativePath(Toy_Interpreter* interpreter, Toy_LiteralArray* arguments) // check self type if (!TOY_IS_OPAQUE(selfLiteral) && TOY_GET_OPAQUE_TAG(selfLiteral) != TOY_OPAQUE_TAG_FILE) { - interpreter->errorOutput("Incorrect self type mode() expects a file type\n"); + interpreter->errorOutput("Incorrect self type path() expects a file type\n"); Toy_freeLiteral(selfLiteral); return -1;