From 83f944c22d5d10ba2c8058afc45d7554d0ade220 Mon Sep 17 00:00:00 2001 From: ngxson Date: Wed, 27 Mar 2024 16:21:29 +0100 Subject: [PATCH] be positive --- examples/gguf-split/gguf-split.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/gguf-split/gguf-split.cpp b/examples/gguf-split/gguf-split.cpp index d0765bc2c..7b67c0b57 100644 --- a/examples/gguf-split/gguf-split.cpp +++ b/examples/gguf-split/gguf-split.cpp @@ -67,7 +67,7 @@ static size_t split_str_to_n_bytes(std::string str) { throw std::invalid_argument("error: supported units are M (megabytes) or G (gigabytes), but got: " + std::string(1, str.back())); } if (n <= 0) { - throw std::invalid_argument("error: size must be a negative value"); + throw std::invalid_argument("error: size must be a positive value"); } return n_bytes; }