Skip to content

Commit

Permalink
throw error to warn no metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
iyobo committed Oct 21, 2023
1 parent bc716f5 commit 562aa62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/util/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export function getPropertiesOfClassValidator(targetConstructor: Function): Reco
return [property, CM.flat()];
}));
}catch(e){
throw new Error(e.message+'. This typically happens when you build your TS code with a compiler like EsBuild that does not respect the "emitDecorators:true" configuration. Please recompile your amala project with tsc or a derivative/combination that involves tsc.')
e.message += '. This typically happens when you build your TS code with a compiler like EsBuild that does not respect the "emitDecorators:true" configuration. Please recompile your amala project with tsc or a derivative/combination that involves tsc'
throw e
}
}

Expand Down

0 comments on commit 562aa62

Please sign in to comment.