event.cpp: die if invalid event type passed

Fixes the build with -Wreturn-type.
This commit is contained in:
David Adam 2019-03-05 07:27:56 +08:00
parent 08fd8b6472
commit b443808452

View file

@ -183,7 +183,7 @@ wcstring event_get_desc(const event_t &evt) {
return format_string(_(L"handler for generic event '%ls'"), ed.str_param1.c_str());
}
default:
assert(0 && "Unknown event type");
DIE("Unknown event type");
}
}