Skip to content

Commit

Permalink
Fix remaining type error in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
openhands-agent committed Dec 3, 2024
1 parent 9424b60 commit 65f2f6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/src/github-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async function fetchWithAuth(url: string): Promise<ApiResponse> {

if (!response.ok) {
const errorBody = await response.text();
throw new Error(`GitHub API error: ${response.status.toString()} ${response.statusText}\n${errorBody}`);
throw new Error(`GitHub API error: ${String(response.status)} ${String(response.statusText)}\n${String(errorBody)}`);
}

// Parse Link header for pagination
Expand Down

0 comments on commit 65f2f6d

Please sign in to comment.