Add parameters to bounce errors

Fixes #552