added error and onComplete parts to subscription

Signed-off-by: greenTara <taraathan@gmail.com>