Skip to content

Commit

Permalink
more detail for logged issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ForsakenHarmony committed Sep 6, 2023
1 parent 7d3e3ae commit 7b2c304
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/next/src/server/lib/router-utils/setup-dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ async function startWatcher(opts: SetupOpts) {
}

function formatIssue(issue: Issue) {
const { filePath, title, description, source } = issue
const { filePath, title, description, source, detail } = issue
let formattedTitle = title.replace(/\n/g, '\n ')
let message = ''

Expand Down Expand Up @@ -257,6 +257,9 @@ async function startWatcher(opts: SetupOpts) {
if (description) {
message += `\n${description.replace(/\n/g, '\n ')}`
}
if (detail) {
message += `\n${detail.replace(/\n/g, '\n ')}`
}

return message
}
Expand Down

0 comments on commit 7b2c304

Please sign in to comment.