Skip to content

Commit

Permalink
Rephrase the error message for clarity
Browse files Browse the repository at this point in the history
Co-authored-by: Lev Chelyadinov <[email protected]>
  • Loading branch information
daniilsapa and illright authored Jul 15, 2024
1 parent a10c893 commit e5acd3d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const noSegmentsOnSlicedLayers = {

if (isConventionalSegment) {
diagnostics.push({
message: `Conventional segment "${folderName}" found as a direct child of a sliced layer. Consider moving it inside a slice or to another layer.`,
message: `Conventional segment "${folderName}" should not be a direct child of a sliced layer. Consider moving it inside a slice or, if that is a slice, consider a different name for it to avoid confusion with segments.`,
location: { path: directChild.path },
})
}
Expand Down

0 comments on commit e5acd3d

Please sign in to comment.