From 985761356280bf8625a6568dd83822aae83edc8f Mon Sep 17 00:00:00 2001 From: Li Jin Date: Mon, 14 Mar 2022 09:28:37 +0800 Subject: fix issue #83. --- src/yuescript/yue_compiler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/yuescript/yue_compiler.cpp b/src/yuescript/yue_compiler.cpp index 45d7820..66130fa 100755 --- a/src/yuescript/yue_compiler.cpp +++ b/src/yuescript/yue_compiler.cpp @@ -60,7 +60,7 @@ using namespace parserlib; typedef std::list str_list; -const std::string_view version = "0.10.5"sv; +const std::string_view version = "0.10.6"sv; const std::string_view extension = "yue"sv; class YueCompilerImpl { @@ -2012,7 +2012,7 @@ private: auto leftValue = singleValueFrom(leftExp); if (!leftValue) throw std::logic_error(_info.errorMessage("left hand expression is not assignable"sv, leftExp)); auto chain = leftValue->item.as(); - if (!chain) throw std::logic_error(_info.errorMessage("left hand expression is not assignable"sv, chain)); + if (!chain) throw std::logic_error(_info.errorMessage("left hand expression is not assignable"sv, leftValue)); BLOCK_START { auto dot = ast_cast(chain->items.back()); -- cgit v1.2.3-55-g6feb