Were the Jedi wrong in how they treated Anakin?

The Jedi Order wasn’t ready to deal with the immature and arrogant Anakin Skywalker in George Lucas’ Star Wars prequel trilogy. Were the Jedi wrong in how they treated him?