Permalink
Browse files

Don't try to parse file if error found

  • Loading branch information...
1 parent ff261c4 commit 460c5fb79961697beb334ac5bff25a6abc585ce6 @Ajnasz committed Dec 6, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/inireadercore.js
View
@@ -225,6 +225,7 @@ IniReaderCore.prototype.load = IniReaderCore.prototype.init = function load(file
}
if (!this.file) {
this.emit('error', new Error('No file name given'));
+ return;
}
try {
if (this.async) {

0 comments on commit 460c5fb

Please sign in to comment.