Skip to content

Commit e189e79

Browse files
committed
fix: add error message
1 parent 9112f5e commit e189e79

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/parse-comment.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ Actual: ${comment}
2424
return {
2525
...json
2626
};
27-
} catch (error) {
27+
} catch (error: any) {
2828
throw new Error(`Can not parsed the metadata.
2929
sandpack:{ ... } should be json string.
3030
Actual: ${comment}
31+
Error: ${error.message}
3132
`);
3233
}
3334
}

0 commit comments

Comments
 (0)