Skip to content

Commit

Permalink
fix: add error message
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed May 28, 2022
1 parent 9112f5e commit e189e79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/parse-comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ Actual: ${comment}
return {
...json
};
} catch (error) {
} catch (error: any) {
throw new Error(`Can not parsed the metadata.
sandpack:{ ... } should be json string.
Actual: ${comment}
Error: ${error.message}
`);
}
}

0 comments on commit e189e79

Please sign in to comment.