Catch exceptions when parsing tile PBFs
Also improved the error message and updated the test case.
This commit is contained in:
committed by
John Firebaugh
parent
3670a78569
commit
d30fce5f7d
@@ -159,7 +159,7 @@ TEST_P(ResourceLoading, RequestWithCorruptedData) {
|
||||
message << "Failed to parse ";
|
||||
|
||||
if (param == "vector.pbf") {
|
||||
message << "\\[15\\/1638(3|4)\\/1638(3|4)\\]\\: pbf unknown field type exception";
|
||||
message << "\\[1(5|6)\\/1638(3|4)\\/1638(3|4)\\]\\: pbf unknown field type exception";
|
||||
} else {
|
||||
message << "\\[test\\/fixtures\\/resources\\/" << param << "\\]";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user