Skip to content

Commit

Permalink
fixing error message to conform to others
Browse files Browse the repository at this point in the history
should be doc.loadInfo not sheet.loadInfo
  • Loading branch information
Connor-Knabe authored Oct 1, 2020
1 parent 250c702 commit 7bd4a82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/GoogleSpreadsheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class GoogleSpreadsheet {
}

_ensureInfoLoaded() {
if (!this._rawProperties) throw new Error('You must call `sheet.loadInfo()` before accessing this property');
if (!this._rawProperties) throw new Error('You must call `doc.loadInfo()` before accessing this property');
}

_updateRawProperties(newProperties) { this._rawProperties = newProperties; }
Expand Down

0 comments on commit 7bd4a82

Please sign in to comment.