Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencelis committed Jul 19, 2024
1 parent f929b36 commit b2337c3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Sources/IssueReporting/Internal/Warn.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import Foundation

func warn(_ message: String) {
#if os(Linux) || os(macOS)
fputs("\(message)\n", stderr)
#else
// TODO: Print to `stderr` on Windows?
print(message)
#endif
}

0 comments on commit b2337c3

Please sign in to comment.