Skip to content

Commit

Permalink
RDB Loader: improve updateTable error message (close #569)
Browse files Browse the repository at this point in the history
  • Loading branch information
spenes committed Sep 14, 2021
1 parent cb82c0a commit 5024381
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ object Migration {
val message = s"Table's schema key '${current.toSchemaUri}' cannot be found in fetched schemas $state. Migration cannot be created"
DiscoveryFailure.IgluError(message).toLoaderError.asLeft
}
case s: DSchemaList.Single =>
val message = s"Illegal State: updateTable called for a table with known single schema [${s.schema.self.schemaKey.toSchemaUri}]\ncolumns: ${columns.mkString(", ")}\nstate: $state"
case _: DSchemaList.Single =>
val message = s"Illegal State: updateTable called for a table with known single schema [${current.toSchemaUri}]\ncolumns: ${columns.mkString(", ")}\nstate: $state"
LoaderError.MigrationError(message).asLeft
}

Expand Down

0 comments on commit 5024381

Please sign in to comment.