manage message using warning callback