mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 14:01:20 -03:00
event.cpp: die if invalid event type passed
Fixes the build with -Wreturn-type.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user