Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
Updating error messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Rodrigues committed Oct 10, 2012
1 parent cc96782 commit 2fc4404
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/services/core/connectionstringparser.js
Expand Up @@ -145,7 +145,7 @@ ConnectionStringParser.prototype._extractString = function (quote) {

if (this._pos === this._value.length) {
// Runaway string.
throw new Error('Invalid string');
throw new Error('Unterminated string starting at position ' + firstPos);
}

return this._value.substring(firstPos, this._pos++);
Expand All @@ -159,7 +159,7 @@ ConnectionStringParser.prototype._extractString = function (quote) {
ConnectionStringParser.prototype._skipOperator = function (operatorChar) {
if (this._value[this._pos] != operatorChar) {
// Character was expected.
throw new Error('Character not expected ' + operatorChar);
throw new Error('expecting ' + operatorChar + ' but instead got ' + currentChar + ' at position ' + this._pos);
}

this._pos++;
Expand Down

0 comments on commit 2fc4404

Please sign in to comment.