       res.status 500
       res.send JSON.stringify {
         success: false
-        err: "Server Error: #{ err }"
+        err: "Server Error: #{ util.format err }"
         userMobileNumber
       }
   .catch (err) ->
     res.status 500
     res.send JSON.stringify {
       success: false
-      err: "Server Error: #{ err }"
+      err: "Server Error: #{ util.format err }"
     }
 
 app.all '/checkCode', (req, res) ->

  message ?= "Code:"

  if contains message, CUSTOM_MESSAGE_CODE_ESCAPE
    messageToSend = message.replace CUSTOM_MESSAGE_CODE_ESCAPE, code
  else
    messageToSend = "#{ message } #{ code }"


      res.status 500
      res.send {
        success: false
        err: "Server Error: #{ util.format err }"
        userMobileNumber
      }
  .catch (err) ->
    res.status 500
    res.send JSON.stringify {
      success: false
      err: "Server Error: #{ util.format err }"
    }


