Bugfix: constant method_name
Make hook errors better reported