use onFailureOperation to handle failure
Merge branch 'locale' of github.com:cgendreau/rewrite into locale