Skip to content

Commit 216962e

Browse files
committed
fix: actually print debug info
1 parent 3dc9b6d commit 216962e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"axios": "^1.11.0"
1313
},
1414
"name": "scratchattach.ts",
15-
"version": "1.0.7",
15+
"version": "1.0.8",
1616
"description": "Typescript package for accessing https://scratch.mit.edu/",
1717
"author": "faretek1",
1818
"license": "MIT",

src/site/session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export async function login(username: string, password: string,
188188
});
189189

190190
if (resp.status !== 200) {
191-
throw new Error(`Login responded with status ${resp.status} with content ${resp.data}`);
191+
throw new Error(`Login responded with status ${resp.status} with content ${JSON.stringify(resp.data)}`);
192192
}
193193
const sc = resp.headers['set-cookie'];
194194

0 commit comments

Comments
 (0)