Fixed bug where errorInfo() is called on  when it failed in src/data.php