Skip to content

Commit

Permalink
Merge pull request #182 from Esri/empty-info
Browse files Browse the repository at this point in the history
adds check for empty info
  • Loading branch information
chelm committed Jun 4, 2015
2 parents 0b5f250 + fe4f6db commit a0e0891
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [2.1.11] - 2015-06-04
### Changed
* Local cache get info now returns error if info does not exist

## [2.1.10] - 2015-06-02
### Changed
* adding an object id to the list of fields when its missing for CSV data
Expand Down
6 changes: 5 additions & 1 deletion lib/Local.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ module.exports = {
},

getInfo: function( key, callback ){
callback(null, this.store[key].info);
if (this.store[key] && this.store[key].info) {
callback(null, this.store[key].info);
} else {
callback('info not found', false)
}
},

updateInfo: function( key, info, callback ){
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "koop",
"version": "2.1.10",
"version": "2.1.11",
"description": "A node module/express middleware for converting GeoJSON to Esri Feature Services.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit a0e0891

Please sign in to comment.