Skip to content

Commit

Permalink
fix(marked-format): add console.error to catch clause
Browse files Browse the repository at this point in the history
marked format doesn't log error which is thrown by prettier.format. It is not obvious why the plugin
does not work. It if would log the error, then right away we'd have a notion that something is not
ok.
  • Loading branch information
m-Pawlowicz authored and bent10 committed May 16, 2024
1 parent 5188710 commit e9de263
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/code-format/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ export default function markedCodeFormat(
? (inlineOptions as prettier.Options)
: {})
})
} catch {}
} catch (e) {
console.error(e)
}
}
}
}

0 comments on commit e9de263

Please sign in to comment.