Instead of returning exception message and exception trace in case of command dispatch exception (see https://github.com/prooph/proophessor-do/blob/develop/src/App/Commanding/API.php#L135) we should set up an error handler like described in the zend-expressive docs
and make sure that exception details are only sent to the client if we are in development mode.
Instead of returning exception message and exception trace in case of command dispatch exception (see https://github.com/prooph/proophessor-do/blob/develop/src/App/Commanding/API.php#L135) we should set up an error handler like described in the zend-expressive docs and make sure that exception details are only sent to the client if we are in development mode.