Remove exceptions from MapBuffer class

Summary:
In Fabric we don't throw exception. This diff removes exception from MapBuffer class

changelog: [internal] internal

Reviewed By: JoshuaGross, sammy-SC

Differential Revision: D27303496

fbshipit-source-id: 3f8c3bd2b41121672ef05153459b20cdc2efcda3
This commit is contained in:
David Vacca
2021-03-24 17:20:11 -07:00
committed by Facebook GitHub Bot
parent 7704f651a0
commit 0b5fbf367d
4 changed files with 11 additions and 1 deletions
@@ -32,7 +32,7 @@ MapBuffer::MapBuffer(uint8_t *const data, uint16_t dataSize) {
if (dataSize != dataSize_) {
LOG(ERROR) << "Error: Data size does not match, expected " << dataSize
<< " found: " << dataSize_;
throw "Error: Data size does not match";
abort();
}
}