From fc3f0f40b76feadd79aa8ce3996c2e9e80aa0201 Mon Sep 17 00:00:00 2001 From: Delapouite Date: Tue, 27 Mar 2018 19:14:41 +0200 Subject: [PATCH] Give more hints in "option not found" error. --- src/option_manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/option_manager.cc b/src/option_manager.cc index efbcf1db..de16cf24 100644 --- a/src/option_manager.cc +++ b/src/option_manager.cc @@ -43,7 +43,7 @@ void OptionManager::unregister_watcher(OptionManagerWatcher& watcher) const struct option_not_found : public runtime_error { option_not_found(StringView name) - : runtime_error("option not found: " + name) {} + : runtime_error(format("option not found: '{}'. Use declare-option first", name)) {} }; Option& OptionManager::get_local_option(StringView name)