dedis / protobuf

Reflection-based Protocol Buffers for Go
GNU General Public License v2.0
76 stars 15 forks source link

Fix panic in encode recovering #69

Closed Gilthoniel closed 4 years ago

Gilthoniel commented 4 years ago

This fixes the panic that was happening when the recover had an error type different than a string.

Gilthoniel commented 4 years ago

Interestingly, this was happening when a service handler does not return an error and the response is nil. Because of the panic, the message error was impossible to decrypt.