Skip to content

Commit

Permalink
Improve project detection error message. Closes #788
Browse files Browse the repository at this point in the history
  • Loading branch information
ileitch committed Aug 19, 2024
1 parent 76e6b39 commit edb9dcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Frontend/Project.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ final class Project {
return self.init(kind: .spm)
}

throw PeripheryError.usageError("Failed to identify project kind.")
throw PeripheryError.usageError("Failed to identify project in the current directory. For Xcode projects use the '--project' option, and for SPM projects change to the directory containing the Package.swift.")
}

let kind: ProjectKind
Expand Down

0 comments on commit edb9dcf

Please sign in to comment.