Skip to content

Commit 7bc6058

Browse files
mikeashairspeedswift
authored andcommitted
[Tools] Add a reminder to run the tool as root if the target can't be inspected.
rdar://problem/55481578
1 parent 7ca1392 commit 7bc6058

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/swiftdt/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func makeReflectionContext(args: inout ArraySlice<String>)
115115
}
116116

117117
guard let inspector = Inspector(pid: pid) else {
118-
argFail("Failed to inspect pid \(pid)")
118+
argFail("Failed to inspect pid \(pid) (are you running as root?)")
119119
}
120120

121121
guard let reflectionContext

0 commit comments

Comments
 (0)