You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: presto-client/README.md
+9-12Lines changed: 9 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,12 +64,7 @@ If the query succeeds, the PrestoQuery object will have the following properties
64
64
-`data`: An array of arrays that contain the actual data for the results.
65
65
-`queryId`: The ID of the query.
66
66
67
-
If the query fails, the PrestoQuery object will have the following properties:
68
-
69
-
-`error`: An object that contains information about the error.
70
-
-`queryId`: The ID of the query.
71
-
72
-
You can use the `error` property to get more information about the error that occurred. You can also use the `queryId` property to cancel the query or to get more information about the status of the query.
67
+
If the query fails, you can catch the error as a PrestoError which contains all information returned by Presto.
73
68
74
69
### Example usage
75
70
@@ -86,12 +81,14 @@ const client = new PrestoClient({
0 commit comments