Skip to content

Commit 20737cd

Browse files
committed
add mdn reference link to jshint friendly hint
1 parent 6bbb338 commit 20737cd

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

client/utils/previewEntry.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,15 @@ if (Array.isArray(window.__jshintErrors) && window.__jshintErrors.length > 0) {
102102
}
103103
]
104104
});
105+
const mdn =
106+
'https://developer.mozilla.org/docs/Web/JavaScript/Reference/Errors/Unexpected_token#What_went_wrong';
105107
messagesBatch.push({
106108
log: [
107109
{
108110
method: 'log',
109-
data: [`🌸 p5.js says: ${friendlyHintForJshint(err)}`],
111+
data: [
112+
`🌸 p5.js says: ${friendlyHintForJshint(err)} + More info: ${mdn}`
113+
],
110114
id: `${id}-hint`
111115
}
112116
]

0 commit comments

Comments
 (0)