Switch to side-by-side view

--- a/generator-vfos-io/templates/drivers/opc-ua/files/models/sensor.js
+++ b/generator-vfos-io/templates/drivers/opc-ua/files/models/sensor.js
@@ -124,7 +124,7 @@
         let specificDriver = require("../driverImplementation/" + sensorConfig[0].driver.protocol)(logger);
 
         // 3. It uses the driver to make the propietary call to the physical device and receive it in agnostic format
-        specificDriver.readSensorData(deviceConfig[0], sensorConfig[0]).then(compute_and_store);
+        specificDriver.readSensorData(deviceConfig[0], sensorConfig[0]).then(compute_and_store).catch(function(e){callback(null, e);});
 
         function compute_and_store(data) {
           // 4. It substitutes the value of the sensor within a computing expression and processes it