Skip to content

Commit

Permalink
Putting back stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
blast-hardcheese committed Feb 19, 2022
1 parent 8064221 commit d3d85f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ class SwaggerGenerator[L <: LA] extends SwaggerTerms[L, Target] {
.refine[Target[Tracker[A]]]({ case extract(name) => name })(
name =>
components.indexedDistribute
.fold[Target[Tracker[A]]](???)(
.fold[Target[Tracker[A]]](Target.raiseException("Attempting to dereference a $ref, but no components defined"))(
components =>
Target.fromOption(
components.downField(label, proj).indexedDistribute.value.toMap.get(name.unwrapTracker),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ object JacksonProtocolGenerator {
case t"Int" => Target.pure(q"writeNumber")
case t"Long" => Target.pure(q"writeNumber")
case t"String" => Target.pure(q"writeString")
case other => ???
case other => Target.raiseException(s"Unexpected type during enumeration encoder: ${className} was ${other}")
}
} yield Some(
q"""
Expand Down

0 comments on commit d3d85f9

Please sign in to comment.