Skip to content

Commit

Permalink
Error Log Detailed Data on Register Failure (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2smith authored Nov 20, 2024
1 parent 2063320 commit 7e989a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/services/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ export class PluginService {
return pluginId;
} else {
const errorData = await response.json();
console.error(`Error registering plugin: ${JSON.stringify(errorData)}`);
const errorMessage = `Failed to register plugin (ID: ${pluginId}). HTTP Status: ${response.status} - ${response.statusText}.`;
console.error(errorMessage);
console.error(`Server response: ${JSON.stringify(errorData)}`);
if (errorData.debugUrl) {
console.log(`Debug URL: ${errorData.debugUrl}`);
}
Expand Down

0 comments on commit 7e989a6

Please sign in to comment.