Skip to content

Commit

Permalink
better error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
cmichi committed Mar 12, 2014
1 parent a7d529e commit fe50796
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions parser/csv-loader.js
Expand Up @@ -7,6 +7,11 @@ module.exports = (function(){
fs.readFile(filename, "utf8", function(err, data) {
//console.log(filename);
//console.log(data);

if (err || !data) {
cb(undefined);
return;
}

data = data.replace(/\"+/g, "");
data = data.replace(/\r|\t/g, "");
Expand Down

0 comments on commit fe50796

Please sign in to comment.