Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/stevenvelozo/meadow
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenvelozo committed Dec 28, 2015
2 parents b187965 + 47c6d91 commit 6933b2f
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "meadow",
"version": "1.0.4",
"version": "1.0.5",
"description": "A data access library.",
"main": "source/Meadow.js",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions source/behaviors/Meadow-Count.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ var meadowBehaviorCount = function(pMeadow, pQuery, fCallBack)
],
function(pError, pQuery, pCount)
{
if (pError)
{
pMeadow.fable.log.warn('Error during the count waterfall', {Error:pError, Message: pError.message, Query: pQuery.query});
}
fCallBack(pError, pQuery, pCount);
}
);
Expand Down
2 changes: 1 addition & 1 deletion source/behaviors/Meadow-Create.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ var meadowBehaviorCreate = function(pMeadow, pQuery, fCallBack)
{
if (pError)
{
pMeadow.fable.log.warn('Error during the create waterfall', {Error:pError, Query: pQuery.query});
pMeadow.fable.log.warn('Error during the create waterfall', {Error:pError, Message: pError.message, Query: pQuery.query, Stack: pError.stack});
}
fCallBack(pError, pQuery, pQueryRead, pRecord);
}
Expand Down
4 changes: 4 additions & 0 deletions source/behaviors/Meadow-Delete.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ var meadowBehaviorDelete = function(pMeadow, pQuery, fCallBack)
],
function(pError, pQuery, pRecord)
{
if (pError)
{
pMeadow.fable.log.warn('Error during the delete waterfall', {Error:pError, Message: pError.message, Query: pQuery.query});
}
fCallBack(pError, pQuery, pRecord);
}
);
Expand Down
2 changes: 1 addition & 1 deletion source/behaviors/Meadow-Read.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var meadowBehaviorRead = function(pMeadow, pQuery, fCallBack)
{
if (pError)
{
pMeadow.fable.log.warn('Error during the read waterfall', {Error:pError, Query: pQuery.query});
pMeadow.fable.log.warn('Error during the read waterfall', {Error:pError, Message: pError.message, Query: pQuery.query});
}
fCallBack(pError, pQuery, pRecord);
}
Expand Down
2 changes: 1 addition & 1 deletion source/behaviors/Meadow-Reads.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var meadowBehaviorReads = function(pMeadow, pQuery, fCallBack)
{
if (pError)
{
pMeadow.fable.log.warn('Error during the read multiple waterfall', {Error:pError, Query: pQuery.query});
pMeadow.fable.log.warn('Error during the read multiple waterfall', {Error:pError, Message: pError.message, Query: pQuery.query});
}
fCallBack(pError, pQuery, pRecords);
}
Expand Down
2 changes: 1 addition & 1 deletion source/behaviors/Meadow-Update.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ var meadowBehaviorUpdate = function(pMeadow, pQuery, fCallBack)
{
if (pError)
{
pMeadow.fable.log.warn('Error during Update waterfall', {Error:pError, Query: pQuery.query});
pMeadow.fable.log.warn('Error during Update waterfall', {Error:pError, Message: pError.message, Query: pQuery.query});
}
fCallBack(pError, pQuery, pQueryRead, pRecord);
}
Expand Down

0 comments on commit 6933b2f

Please sign in to comment.