diff --git a/lib/torque/provider/windshaft.js b/lib/torque/provider/windshaft.js index 7093cf4..3b21fdc 100644 --- a/lib/torque/provider/windshaft.js +++ b/lib/torque/provider/windshaft.js @@ -460,7 +460,7 @@ map_instance_time.end(); if (data) { if (data.errors){ - self.options.errorCallback(data.errors); + self.options.errorCallback && self.options.errorCallback(data.errors); return; } var torque_key = Object.keys(data.metadata.torque)[0]