We commend Hadley Police Sgt. Kenneth Hartwright for taking responsibility for a racially insensitive post he made last month to the department’s official Facebook page, and publicly apologizing.

We also appreciate that Police Chief Michael Mason acted quickly to acknowledge the mistake and call a community meeting during which Hartwright apologized. That was a good start to healing wounds opened by the unfortunate post.

Hartwright said on April 21 he saw a post shared from a Facebook page called “Guardians Of The Thin Blue Line” that referred to two recent incidents: the fatal shooting April 19 of two police officers while they were eating lunch at a Florida restaurant, and the arrest of two black men who arrived 10 minutes early April 12 for a business meeting at a Starbucks in Philadelphia.

The post read: “Two guys get kicked outta Starbucks and everyone freaks out. 2 cops just having lunch were assainated (sic) and no one bats an eye …” Hartwright said he intended to share the post on his personal Facebook page, but inadvertently placed it on the Hadley Police Department’s page.

According to Mason’s initial statement issued April 22, “The post remained on the page for approximately 10-12 minutes, and as soon as the mistake was noticed, the employee who posted it did delete it. He immediately reported this issue to me and issued an apology for his mistake.”

Hartwright explained that he shared the post out of frustration, focusing only on the second sentence. Neither that explanation nor his intent to place the post on his personal Facebook page excuse his poor judgment that violated the Hadley Police policy on use of personal social media. It forbids any speech that would “negatively affect the public perception of the department.”

Hartwright was contrite at a meeting April 30 organized in response to community concerns about the incident. Repeatedly apologizing and at times choking up during the hour-long session, Hartwright said, “This has been the worst week of my life, definitely the worst week of my career.”

He added, “The worst part? I think I deserve it. I’ve been serving the public for 37 years and I’ve never been accused of what I’ve been accused of last week. I feel awful about this. I am sorry.”

Mason said that by being open, his department has an opportunity to “rebuild this trust.”

Resident Dee Scanlon said she called the Police Department when she saw the post. Referring to Hartwright’s explanation that he had focused on the second part about the two slain officers, Scanlon said she read the first sentence and thought of her family. She told Hartwright, “It took a ton of courage for you to sit here and speak from the heart. I am grateful you are here and that you protect my children and my family.”

Other residents said this is an opportunity for the people of Hadley to come together and examine the kind of community they want. We agree, and encourage town leaders and residents to continue that conversation.

While the circumstances are different, the transparency in Hadley is similar to that by Granby Police Chief Alan Wishart in 2015 when he admitted a mistake had been made in handling an incident involving his then-counterpart from Belchertown.

A Granby officer who stopped Francis Fox Jr., then the police chief in Belchertown, on Feb. 1, 2015, failed to arrest him despite observing “his eyes to be extremely red, bloodshot and glossy. A strong smell of alcohol emitted from his breath as he spoke with me and he was slurring his words.” The officer also reported that “Chief Fox … asked me if I had never drove drunk before.”

The incident was not made public until the Daily Hampshire Gazette and other media requested the police report. After it was released in September 2015, Wishart said that Fox should have been arrested, and he would have done so if he had made the traffic stop. “That would have been the preferred response in this situation,” Wishart said.

Fox resigned later that month.

In both cases, mistakes were made and police made unfortunate situations better by admitting their errors — a welcome departure from far too many instances when cover-ups worsen the original sin.