| commit | 9eb631da18b9ea58fd3e5b965f930289655db570 | [log] [tgz] |
|---|---|---|
| author | Adriana Kobylak <anoo@us.ibm.com> | Tue Nov 05 14:10:42 2019 -0600 |
| committer | Adriana Kobylak <anoo@us.ibm.com> | Thu Nov 07 11:13:22 2019 -0600 |
| tree | 791fb0dcf710e381cd0001429dbf0080935f91da | |
| parent | 22848eceb4f19c93b1e3331e52005ce09523637d [diff] |
serialize: Replace cereal::RapidJSONException with cereal::Exception
cereal::RapidJSONException is inherited from cereal::Exception.
Currently if the code hits a cereal::Exception, the exception is not
caught and the BMC updater service fails to start. Change it to
catch cereal::Exception, which would also catch cereal::RapidJSONException.
Tested: Caused both kinds of exceptions and verified they were caught.
Printing the e.what():
- cereal::Exception - Request non-existent name:
Nov 04 19:52:22 witherspoon-128-Y330UF73C00D phosphor-image-updater[630]: JSON Parsing failed - provided NVP (purpose) not found
- cereal::RapidJSONException - Corrupted json:
Nov 04 19:52:23 witherspoon-128-Y330UF73C00D phosphor-image-updater[630]: rapidjson internal assertion failure: IsObject()
Change-Id: I62a7f4ebf07c4f53db0f77819e43bed773ec9969
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Phosphor BMC Code Management provides a set of system software management applications. More information can be found at Software Architecture
To build this package, do the following steps:
1. ./bootstrap.sh
2. ./configure ${CONFIGURE_FLAGS}
3. make
To clean the repository run `./bootstrap.sh clean`.