Fixed refreshing of MojitHook, by updating the corresponding hook's viewId after updating the node after an inovke.
Updated ac.error such that the error can itself be an exception in addition to a string or an object containing a message and exception.