Skip to content

Commit f168d0b

Browse files
committed
Give a generic failure message on Linux
1 parent 586246c commit f168d0b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

utils/make-pkgconfig.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ func makeFile() throws {
107107
do {
108108
try makeFile()
109109
} catch {
110-
// print("error: \(error)")
110+
#if os(Linux)
111+
// FIXME: Printing the thrown error that here crashes on Linux.
112+
print("Unexpected error occured while writing the config file. Check permissions and try again.")
113+
#else
114+
print("error: \(error)")
115+
#endif
111116
exit(-1)
112117
}

0 commit comments

Comments
 (0)