mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:07:45 +00:00
LibGUI+Userland: Propagate errors in Model::column_name()
This commit is contained in:
parent
94bcb5bea8
commit
f33824d2e9
73 changed files with 140 additions and 146 deletions
|
@ -34,15 +34,15 @@ ErrorOr<void> CertificateStoreModel::load()
|
|||
return {};
|
||||
}
|
||||
|
||||
String CertificateStoreModel::column_name(int column) const
|
||||
ErrorOr<String> CertificateStoreModel::column_name(int column) const
|
||||
{
|
||||
switch (column) {
|
||||
case Column::IssuedTo:
|
||||
return "Issued To"_string.release_value_but_fixme_should_propagate_errors();
|
||||
return TRY("Issued To"_string);
|
||||
case Column::IssuedBy:
|
||||
return "Issued By"_string.release_value_but_fixme_should_propagate_errors();
|
||||
return TRY("Issued By"_string);
|
||||
case Column::Expire:
|
||||
return "Expiration Date"_string.release_value_but_fixme_should_propagate_errors();
|
||||
return TRY("Expiration Date"_string);
|
||||
default:
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue