Skip to content

Commit 9d1117f

Browse files
committed
log message type for error
1 parent 743ad21 commit 9d1117f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

conformance/conformance_php.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ function doTest($request)
4343
} elseif ($request->getMessageType() == "protobuf_test_messages.proto2.TestAllTypesProto2") {
4444
$response->setSkipped("PHP doesn't support proto2");
4545
return $response;
46+
} elseif (!empty($request->getMessageType())) {
47+
trigger_error(
48+
sprintf("Protobuf request doesn't support %s message type", $request->getMessageType()),
49+
E_USER_ERROR
50+
);
4651
} else {
4752
trigger_error("Protobuf request doesn't have specific payload type", E_USER_ERROR);
4853
}

0 commit comments

Comments
 (0)