Skip to content

Commit

Permalink
Fix invalid_db_same_uuid error
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Jamet committed Nov 12, 2019
1 parent b9cfb32 commit f4caaad
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,10 @@ class LoadDatabaseInvalidAlgorithmException : LoadDatabaseException {

class LoadDatabaseDuplicateUuidException: LoadDatabaseException {
@StringRes
override var errorId: Int = R.string.invalid_algorithm
override var errorId: Int = R.string.invalid_db_same_uuid

constructor(type: Type, uuid: PwNodeId<*>) : super() {
parameters = Array(2) {
when(it) {
1 -> type.name
2 -> uuid.toString()
else -> {""}
}
}
parameters = arrayOf(type.name, uuid.toString())
}
constructor(exception: Throwable) : super(exception)
}
Expand Down

0 comments on commit f4caaad

Please sign in to comment.