Skip to content

Commit 590c62f

Browse files
committed
Prettify output
1 parent 4ad52af commit 590c62f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

org/allPRs.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ export const singletons = async () => {
8585

8686
// If no files to check after filtering, exit early
8787
if (changedFiles.length === 0) {
88-
fail(`No Swift files changed. Modified files: ${danger.git.modified_files}`);
8988
return;
9089
}
9190

@@ -96,7 +95,7 @@ export const singletons = async () => {
9695
if (foundSingleton) {
9796
// trim leading + and whitespace
9897
const cleanLine = foundSingleton.replace(/^\+\s*/, '').trim();
99-
fail(`New singleton definitions are not allowed. Found: \`${cleanLine}\``);
98+
fail(`New singleton definitions are not allowed. Found this line:\n\`\`\`swift\n${cleanLine}\n\`\`\``);
10099
return;
101100
}
102101
}

0 commit comments

Comments
 (0)