       resolve(result.rawValue)
       },
       error: { (error) in
-        let err = NSError(coder: NSCoder())
-        reject("get_error", "Error resolving \(path) with \(data)", err)
+        let errorMsg = "Error resolving \(path) with \(data)"
+        let err: NSError = NSError(domain: errorMsg, code: 0, userInfo: nil)
+        reject("postArray_error", errorMsg, err)
     }))
   }
   

        resolve(result.rawValue)
      },
      error: { (error) in
        let err = NSError(coder: NSCoder())
        reject("get_error", "Error resolving \(path) with \(data)", err)
    }))
  }
  

        resolve(result.rawValue)
      },
      error: { (error) in
        let errorMsg = "Error resolving \(path) with \(data)"
        let err: NSError = NSError(domain: errorMsg, code: 0, userInfo: nil)
        reject("post_error", errorMsg, err)
    }))
  }
  
