Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 475d235

Browse files
Fixes zendframework#475 - Enhance Zend_Server_Exception message
Fixes Issue zendframework#475. Zend_Server_Exception should include the method name for easier debugging since it is not captured in the stack trace
1 parent 8482f0b commit 475d235

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/Zend/Json/Server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ protected function _handle()
550550
$orderedParams[ $refParam->getName() ] = $refParam->getDefaultValue();
551551
} else {
552552
throw new Zend_Server_Exception(
553-
'Missing required parameter: ' . $refParam->getName()
553+
'Method ' . $request->getMethod() . 'is missing required parameter: ' . $refParam->getName()
554554
);
555555
}
556556
}

0 commit comments

Comments
 (0)