Skip to content

Commit

Permalink
add attribution to relay
Browse files Browse the repository at this point in the history
  • Loading branch information
James Baxley committed Mar 19, 2016
1 parent d33e696 commit 191d1a5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/networkLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ class NetworkLayer {

}

/*
An easy way to breakdown the errors of a query
from https://github.com/facebook/relay/blob/master/src/network-layer/default/RelayDefaultNetworkLayer.js#L174
*/
function formatRequestErrors(request, errors) {
const CONTEXT_BEFORE = 20;
const CONTEXT_LENGTH = 60;
Expand Down

0 comments on commit 191d1a5

Please sign in to comment.