Permalink
Browse files

improved err message for loading csv

  • Loading branch information...
1 parent 1151a0b commit a278c1c5a5f6510e12226d63fabb9de35daf787a @shakty shakty committed Feb 9, 2017
Showing with 10 additions and 4 deletions.
  1. +1 −1 build/nddb.js
  2. +1 −1 build/nddb.min.js
  3. +4 −1 docs/lib/fs.js.html
  4. +4 −1 lib/fs.js
View
@@ -6885,7 +6885,7 @@
if (index !== oldIdx) {
if ('undefined' !== typeof oldIdx) {
if ('undefined' !== typeof this[key].resolve[oldIdx]) {
- delete this[key].resolve[oldIdx];
+ this[key]._remove(oldIdx);
}
}
}
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -610,7 +610,10 @@
<span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">foundJ</span><span class="p">)</span> <span class="p">{</span>
<span class="nx">that</span><span class="p">.</span><span class="nx">throwErr</span><span class="p">(</span><span class="s1">&#39;Error&#39;</span><span class="p">,</span> <span class="nx">method</span><span class="p">,</span>
<span class="s1">&#39;missing closing quote &#39;</span> <span class="o">+</span>
- <span class="nx">token</span><span class="p">);</span>
+ <span class="s1">&#39;(quote=&#39;</span> <span class="o">+</span> <span class="nx">quote</span> <span class="o">+</span> <span class="s1">&#39; sep=&#39;</span> <span class="o">+</span>
+ <span class="nx">separator</span> <span class="o">+</span> <span class="s1">&#39; escape=&#39;</span> <span class="o">+</span>
+ <span class="nx">escapeCharacter</span> <span class="o">+</span> <span class="s1">&#39;). &#39;</span> <span class="o">+</span>
+ <span class="s1">&#39;Row: &#39;</span> <span class="o">+</span> <span class="nx">token</span> <span class="p">);</span>
<span class="p">}</span>
<span class="p">}</span>
<span class="nx">result</span> <span class="o">=</span> <span class="nx">result</span><span class="p">.</span><span class="nx">substring</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="nx">result</span><span class="p">.</span><span class="nx">length</span> <span class="o">-</span><span class="mi">1</span><span class="p">);</span>
View
@@ -260,7 +260,10 @@
if (!foundJ) {
that.throwErr('Error', method,
'missing closing quote ' +
- token);
+ '(quote=' + quote + ' sep=' +
+ separator + ' escape=' +
+ escapeCharacter + '). ' +
+ 'Row: ' + token );
}
}
result = result.substring(1, result.length -1);

0 comments on commit a278c1c

Please sign in to comment.