Skip to content

Commit 4bccdaa

Browse files
committed
fix: avoid undefined in output
1 parent 1d0563b commit 4bccdaa

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/reporters/runReporter.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ export default class RunReporter {
3131
const diagnostic = response.diagnostic[0];
3232
if (!response.compiled) {
3333
outputText.push(
34-
StandardColors.error(`Error: Line: ${diagnostic.lineNumber}, Column: ${diagnostic.columnNumber}`),
34+
StandardColors.error(
35+
`Error: Line: ${diagnostic.lineNumber ?? '<not provided>'}, Column: ${
36+
diagnostic.columnNumber ?? '<not provided>'
37+
}`
38+
),
3539
StandardColors.error(`Error: ${diagnostic.compileProblem}\n`)
3640
);
3741
} else {

yarn.lock

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4519,12 +4519,7 @@ extend@^3.0.2:
45194519
resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa"
45204520
integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==
45214521

4522-
fast-copy@^3.0.0:
4523-
version "3.0.1"
4524-
resolved "https://registry.yarnpkg.com/fast-copy/-/fast-copy-3.0.1.tgz#9e89ef498b8c04c1cd76b33b8e14271658a732aa"
4525-
integrity sha512-Knr7NOtK3HWRYGtHoJrjkaWepqT8thIVGAwt0p0aUs1zqkAzXZV4vo9fFNwyb5fcqK1GKYFYxldQdIDVKhUAfA==
4526-
4527-
fast-copy@^3.0.2:
4522+
fast-copy@^3.0.0, fast-copy@^3.0.2:
45284523
version "3.0.2"
45294524
resolved "https://registry.yarnpkg.com/fast-copy/-/fast-copy-3.0.2.tgz#59c68f59ccbcac82050ba992e0d5c389097c9d35"
45304525
integrity sha512-dl0O9Vhju8IrcLndv2eU4ldt1ftXMqqfgN4H1cpmGV7P6jeB9FwpN9a2c8DPGE1Ys88rNUJVYDHq73CGAGOPfQ==

0 commit comments

Comments
 (0)