From f0e8e35e2be8ab8ec49c4cfdfa3fc79523a1f317 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Mon, 16 Feb 2026 20:20:11 -0800 Subject: [PATCH] fix typos in error messages --- src/Main.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Main.cc b/src/Main.cc index c4e7a8b8..7439af54 100644 --- a/src/Main.cc +++ b/src/Main.cc @@ -3215,7 +3215,7 @@ Action a_optimize_materialized_map( } else if (tokens.size() == 3) { minimize_types.emplace(std::stoul(tokens[0], nullptr, 0), std::make_pair(std::stoul(tokens[1], nullptr, 0), std::stoul(tokens[2], nullptr, 0))); } else { - throw std::runtime_error("invalid vlaue for --minimize"); + throw std::runtime_error("invalid value for --minimize"); } } @@ -3223,7 +3223,7 @@ Action a_optimize_materialized_map( for (const auto& arg : args.get_multi("restrict-room")) { auto tokens = phosg::split(arg, ':'); if (tokens.size() != 2) { - throw std::runtime_error("invalid vlaue for --restrict-room"); + throw std::runtime_error("invalid value for --restrict-room"); } uint8_t floor = std::stoul(tokens[0], nullptr, 0); uint16_t room_id = std::stoul(tokens[1], nullptr, 0);