feature(main) sendError: params, error -> error, params