Skip to content

Commit

Permalink
refactor: prediction error debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
fearandesire committed Oct 26, 2024
1 parent b752a8f commit cce760c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/utils/api/Khronos/prediction/predictionApiWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ export default class PredictionApiWrapper {
}

async getPredictionById(params: GetPredictionByIdRequest) {
await this.predictionApi.getPredictionById(params);
try {
const response = await this.predictionApi.getPredictionById(params);
return response;
} catch (error) {
console.error('Error fetching prediction by id:', error);
throw error;
}
}

async deletePrediction(params: RemovePredictionRequest) {
Expand Down

0 comments on commit cce760c

Please sign in to comment.