From 223d0b79c6ab5c029db35ac2d1a3ed72ee9ba1f1 Mon Sep 17 00:00:00 2001 From: Nonemoticoner Date: Thu, 31 Mar 2016 15:44:44 +0200 Subject: [PATCH] Update README.md Syntax highlight fix --- README.md | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 9b46cd5..69432c9 100644 --- a/README.md +++ b/README.md @@ -258,18 +258,22 @@ ig.del_subscription({ id: 1 }, function(err, subscriptions, remaining, limit){}) When errors occur, you receive an error object with default properties, but we also add some other things: - // Available when the error comes from Instagram API - err.code; // code from Instagram - err.error_type; // error type from Instagram - err.error_message; // error message from Instagram - - // If the error occurs while requesting the API - err.status_code; // the response status code - err.body; // the received body +```javascript +// Available when the error comes from Instagram API +err.code; // code from Instagram +err.error_type; // error type from Instagram +err.error_message; // error message from Instagram + +// If the error occurs while requesting the API +err.status_code; // the response status code +err.body; // the received body +``` and - err.retry(); // Lets you retry in the same conditions that before +```javascript +err.retry(); // Lets you retry in the same conditions that before +``` ## Pagination