Added RPC function "error"