Skip to content

Commit c851608

Browse files
committed
Use negative exit codes in error scenarios
1 parent 8a0bba6 commit c851608

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/DefaultBuilder/test/Microsoft.AspNetCore.TrimmingTests/SlimBuilderDoesNotDependOnX509Test.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
var app = builder.Build();
88

99
if (X509Utilities.HasCertificateType) {
10-
return 1;
10+
return -1;
1111
}
1212

1313
return 100; // Success

src/DefaultBuilder/test/Microsoft.AspNetCore.TrimmingTests/UseHttpsDoesDependOnX509Test.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
}
2727

2828
if (!X509Utilities.HasCertificateType) {
29-
return 1;
29+
return -1;
3030
}
3131

3232
return 100; // Success

0 commit comments

Comments
 (0)