Skip to content

Commit

Permalink
Merge pull request #761 from Gabriel-Darbord/760-Unhandled-metadata-p…
Browse files Browse the repository at this point in the history
…arsing-error

Handle metadata parsing error
  • Loading branch information
Ducasse authored Jun 1, 2024
2 parents 350fe55 + 5f13084 commit 2833225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Microdown/MicMetaDataBlock.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ MicMetaDataBlock >> bogusParsing [
{ #category : 'markups' }
MicMetaDataBlock >> closeMe [
super closeMe.
body := [ STONJSON fromString: '{', body, '}' ] on: STONReaderError do: [ :ex |
body := [ STONJSON fromString: '{', body, '}' ] on: Error do: [ :ex |
| dict |
bogusParsing := true.
dict := Dictionary new at: self keyForUnparsableContents put: body; yourself ]
Expand Down

0 comments on commit 2833225

Please sign in to comment.