File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ type DiffError
27
27
, constructorName2 : FQN
28
28
}
29
29
| StrayConstructor { culprit : DiffErrorCulprit , constructorName : FQN }
30
- | LibFoundAtUnexpectedPath
30
+ | LibFoundAtUnexpectedPath { path : FQN }
31
31
| UnknownError
32
32
33
33
@@ -74,6 +74,10 @@ decodeDiffError =
74
74
makeStrayConstructor culprit ctor =
75
75
StrayConstructor
76
76
{ culprit = culprit, constructorName = ctor }
77
+
78
+ makeLibFoundAtUnexpectedPath path =
79
+ LibFoundAtUnexpectedPath
80
+ { path = path }
77
81
in
78
82
Decode . oneOf
79
83
[ whenTagIs " impossibleError"
@@ -102,7 +106,7 @@ decodeDiffError =
102
106
( Decode . field " constructorName" FQN . decode)
103
107
)
104
108
, whenTagIs " libFoundAtUnexpectedPath"
105
- ( Decode . succeed LibFoundAtUnexpectedPath )
109
+ ( Decode . map makeLibFoundAtUnexpectedPath ( Decode . field " path " FQN . decode ) )
106
110
, Decode . succeed UnknownError
107
111
]
108
112
Original file line number Diff line number Diff line change @@ -995,9 +995,10 @@ view appContext projectRef contribution model =
995
995
, text " branch."
996
996
]
997
997
998
- BranchDiffState . LibFoundAtUnexpectedPath ->
998
+ BranchDiffState . LibFoundAtUnexpectedPath { path } ->
999
999
Just
1000
- [ text " lib namespace found at unexpected path."
1000
+ [ text " lib namespace found at unexpected path: "
1001
+ , FQN . view path
1001
1002
]
1002
1003
1003
1004
_ ->
Original file line number Diff line number Diff line change @@ -232,6 +232,10 @@ type DiffErrorDetails =
232
232
tag : "strayConstructor" ;
233
233
oldOrNewBranch : DiffErrorCulprit ;
234
234
constructorName : string ;
235
+ }
236
+ | {
237
+ tag : "libFoundAtUnexpectedPath" ;
238
+ path : string ;
235
239
} ;
236
240
237
241
type ContributionDiffConfig =
You can’t perform that action at this time.
0 commit comments