Add `toJSON` method to `Error` prototype to allow errors to be logged properly (especially for rejected promises)
Fix test that broke because errors are not described in more detail
Update dist files
2.8.0