athena-client
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -124,3 +124,3 @@ 'use strict' | ||
function isThrottlingException(err) { | ||
return err.errorType == "ThrottlingException" | ||
return err.code == "ThrottlingException" | ||
} | ||
@@ -127,0 +127,0 @@ |
{ | ||
"name": "athena-client", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "a nodejs simple aws athena client", | ||
@@ -28,2 +28,2 @@ "homepage": "https://github.com/KoteiIto/node-athena", | ||
} | ||
} | ||
} |
@@ -62,3 +62,3 @@ 'use strict' | ||
let error = new Error('Rate exceeded') | ||
error.errorType = 'ThrottlingException' | ||
error.code = 'ThrottlingException' | ||
return callback(error, null) | ||
@@ -65,0 +65,0 @@ } |
31262