Skip to content

Commit

Permalink
Update linkie-core and add error for no translation matches
Browse files Browse the repository at this point in the history
Signed-off-by: shedaniel <[email protected]>
  • Loading branch information
shedaniel committed Jul 8, 2021
1 parent a7f0017 commit 5ef0f2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ repositories {
}

dependencies {
implementation("me.shedaniel:linkie-core:1.0.80") {
implementation("me.shedaniel:linkie-core:1.0.81") {
exclude module: "korio"
}
implementation("com.discord4j:discord4j-core:3.1.3") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ class QueryTranslateMappingsCommand(
}
}
}

if (newResult.isEmpty()) {
throw NullPointerException("Some results were found, but was unable to translate to the target namespace! Please report this issue!")
}

return TranslationResult(
source.toSimpleMappingsMetadata(),
Expand Down

0 comments on commit 5ef0f2a

Please sign in to comment.