add type to error log for testing