Code style
Add a helper function for extraction of exception information
Use err-info in info middleware
Use err-info in complete middleware