Skip to content

Commit 401a671

Browse files
Add Build Failed message
1 parent c7c84c2 commit 401a671

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/Build/BuildDelegate.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
This source file is part of the Swift.org open source project
33

4-
Copyright (c) 2018 Apple Inc. and the Swift project authors
4+
Copyright (c) 2018-2020 Apple Inc. and the Swift project authors
55
Licensed under Apache License v2.0 with Runtime Library Exception
66

77
See http://swift.org/LICENSE.txt for license information
@@ -396,6 +396,7 @@ public final class BuildDelegate: BuildSystemDelegate, SwiftCompilerOutputParser
396396

397397
public func hadCommandFailure() {
398398
onCommmandFailure?()
399+
print("\n\n * Build Failed!")
399400
}
400401

401402
public func handleDiagnostic(_ diagnostic: SPMLLBuild.Diagnostic) {
@@ -573,9 +574,8 @@ fileprivate struct CommandTaskTracker {
573574
if (totalCount == finishedCount) {
574575
let latestOutput: String? = latestFinishedText
575576
latestFinishedText = """
576-
\(latestOutput ?? "")
577-
* Build Process Completed!
578-
* Generated Binaries: .build/
577+
\(latestOutput ?? "")\n
578+
* Build Completed!
579579
"""
580580
}
581581
break

0 commit comments

Comments
 (0)