Add custom data to error.