Add better error text if input is NaN

This commit is contained in:
Manfred Karrer 2017-11-10 13:19:21 -05:00
parent 1134c8bc71
commit b78a7d7c90
No known key found for this signature in database
GPG Key ID: 401250966A6B2C46

View File

@ -367,6 +367,10 @@ class CreateOfferViewModel extends ActivatableWithDataModel<CreateOfferDataModel
} }
} }
} }
} catch (NumberFormatException t) {
log.error(t.toString());
t.printStackTrace();
new Popup<>().warning(Res.get("validation.NaN")).show();
} catch (Throwable t) { } catch (Throwable t) {
log.error(t.toString()); log.error(t.toString());
t.printStackTrace(); t.printStackTrace();