Skip to content

Commit

Permalink
Merge pull request #5 from dvci/fix-typescript-error
Browse files Browse the repository at this point in the history
Fix TypeScript Error Preventing Build
  • Loading branch information
radamson authored Sep 28, 2021
2 parents 54023b6 + f50d4ab commit f553843
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lib/src/services/converter.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class ConverterService {
try {
result = engine.renderFileSync(jsonData['MSH']['9']['3'], jsonData);
} catch (e) {
if (e.message.includes('ENOENT: Failed to lookup')) {
if ((e as Error).message.includes('ENOENT: Failed to lookup')) {
return Promise.reject({ type: 'ERR_UNSUPPORTED', error: e });
}
return Promise.reject({ type: 'ERR_TRANSLATE', error: e });
Expand Down

0 comments on commit f553843

Please sign in to comment.