Skip to content

Commit

Permalink
Make error message clearer
Browse files Browse the repository at this point in the history
This adds detail on how to fix "invalid project permission" error.
  • Loading branch information
ryanlink authored Oct 10, 2024
1 parent dc572c6 commit 91d0181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App/Fossa/PreflightChecks.hs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ instance ToDiagnostic ProjectPermissionErr where
renderDiagnostic CreateTeamProjectPermissionErr =
Errata (Just projectPermissionErrHeader) [] $ Just "You do not have permission to create projects for the specified team"
renderDiagnostic CreateProjectOnlyToTeamPermissionErr =
Errata (Just projectPermissionErrHeader) [] $ Just "You only have permission to create projects for your team"
Errata (Just projectPermissionErrHeader) [] $ Just "You only have permission to create projects for your team. Please specify a team in .fossa.yml or using the --team flag"

releaseGroupPermissionErrHeader :: Text
releaseGroupPermissionErrHeader = "Invalid release group permission"
Expand Down

0 comments on commit 91d0181

Please sign in to comment.