@@ -60,7 +60,7 @@ namespace vast::repl
60
60
if (token == " ast" ) return enum_type::ast;
61
61
if (token == " module" ) return enum_type::module;
62
62
if (token == " symbols" ) return enum_type::symbols;
63
- VAST_UNREACHABLE (" uknnown show kind: {0}" , token.str ());
63
+ VAST_FATAL (" uknnown show kind: {0}" , token.str ());
64
64
}
65
65
66
66
enum class meta_action { add, get };
@@ -69,7 +69,7 @@ namespace vast::repl
69
69
enum_type from_string (string_ref token) requires(std::is_same_v< enum_type, meta_action >) {
70
70
if (token == " add" ) return enum_type::add;
71
71
if (token == " get" ) return enum_type::get;
72
- VAST_UNREACHABLE (" uknnown action kind: {0}" , token.str ());
72
+ VAST_FATAL (" uknnown action kind: {0}" , token.str ());
73
73
}
74
74
75
75
//
@@ -112,7 +112,7 @@ namespace vast::repl
112
112
template < const char *name, typename params_storage >
113
113
auto get_param (const params_storage ¶ms) {
114
114
if constexpr (std::tuple_size_v< params_storage > == 0 ) {
115
- VAST_UNREACHABLE ((" unknown param name " + std::string (name)).c_str ());
115
+ VAST_FATAL ((" unknown param name " + std::string (name)).c_str ());
116
116
} else {
117
117
using current = typename std::tuple_element< 0 , params_storage >::type;
118
118
@@ -267,7 +267,7 @@ namespace vast::repl
267
267
}
268
268
269
269
if constexpr (params_list::empty) {
270
- VAST_UNREACHABLE ((" no match for param: " + tokens.front ()).str ().c_str ());
270
+ VAST_FATAL ((" no match for param: " + tokens.front ()).str ().c_str ());
271
271
} else {
272
272
using current_param = typename params_list::head;
273
273
using rest = typename params_list::tail;
@@ -296,7 +296,7 @@ namespace vast::repl
296
296
297
297
if constexpr (commands::empty) {
298
298
// we did not recursivelly match any of known commands
299
- VAST_UNREACHABLE ((" no match for command: " + tokens.front ()).str ().c_str ());
299
+ VAST_FATAL ((" no match for command: " + tokens.front ()).str ().c_str ());
300
300
} else {
301
301
using current_command = typename commands::head;
302
302
using rest = typename commands::tail;
0 commit comments