mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
event.cpp: die if invalid event type passed
Fixes the build with -Wreturn-type.
This commit is contained in:
parent
08fd8b6472
commit
b443808452
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue