*The Red Badge of Courage* does not feature a character named Ernest Defarge. The story focuses on Henry Fleming, a young Union soldier during the American Civil War, and his experiences with fear, courage, and the horrors of war.
Perhaps you are thinking of another character or work. If you can provide more context, I can help you understand the author's tone towards a specific character.