@vizamodo/aws-sts-core 0.4.16 → 0.4.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sts/issue.js +2 -1
- package/package.json +1 -1
package/dist/sts/issue.js
CHANGED
|
@@ -139,7 +139,8 @@ export async function issueAwsCredentials(input) {
|
|
|
139
139
|
throw new InternalError("aws_unreachable");
|
|
140
140
|
}
|
|
141
141
|
if (!res.ok) {
|
|
142
|
-
|
|
142
|
+
const body = await res.text().catch(() => "<no-body>");
|
|
143
|
+
console.error("[aws-rejected]", { status: res.status, region, profile, body });
|
|
143
144
|
throw new InternalError("aws_rejected");
|
|
144
145
|
}
|
|
145
146
|
const json = await res.json();
|