Skip to content

Commit

Permalink
Kaster riktig type error
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbjoern committed Jun 4, 2024
1 parent 1e9ee4c commit ccc41a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pages/api/innsending/soknadinnsending.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ export const sendSoknadViaAapInnsending = async (
return søknad;
} catch (error) {
logError('Noe gikk galt ved innsending av søknad', error);
if (error instanceof ErrorMedStatus) {
throw error;
}
throw new Error('Error sending søknad via aap-innsending');
}
};
Expand Down

0 comments on commit ccc41a1

Please sign in to comment.