A Gronwall inequality for a general Caputo fractional operator