]> Dogcows Code - chaz/graphql-client/blobdiff - lib/GraphQL/Client.pm
add more pod fixups
[chaz/graphql-client] / lib / GraphQL / Client.pm
index ff8f720cd88d4545f668b79e9c9dd3c5a411d6d5..d2dd652b4dbc75bdc69a259641107eb66b81cc35 100644 (file)
@@ -272,7 +272,8 @@ By default this is automatically constructed based on L</transport_class> or L</
 
 There are two different styles for handling errors.
 
-If L</unpack> is 0 (off), every response -- whether success or failure -- is enveloped like this:
+If L</unpack> is 0 (off, the default), every response -- whether success or failure -- is enveloped
+like this:
 
     {
         data   => {...},
@@ -298,6 +299,7 @@ otherwise it will throw an exception. So your code would instead look like this:
 
     my $data = eval { $graphql->execute(...) };
     if (my $error = $@) {
+        my $resp = $error->{response};
         # handle errors
     }
     else {
This page took 0.017247 seconds and 4 git commands to generate.