Skip to content

Commit

Permalink
throw error instead of console.error
Browse files Browse the repository at this point in the history
  • Loading branch information
cctdaniel committed Sep 8, 2023
1 parent 9ed4155 commit 38dc203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PythConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class PythConnection {
}
}
} catch (error: any) {
console.error(`Failed to parse account with key ${key.toString()}: ${error.message}`)
throw new Error(`Failed to parse account with key ${key.toString()}: ${error.message}`)
}
}

Expand Down

0 comments on commit 38dc203

Please sign in to comment.