Fix error naming inconsistency in hook errors