Skip to content

Commit

Permalink
Adding a missing else block for throwing a store def mismatch exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinmay Soman committed Apr 24, 2013
1 parent 626ea52 commit 9991605
Showing 1 changed file with 10 additions and 0 deletions.
Expand Up @@ -411,6 +411,11 @@ public void verifySchema(String url) throws Exception {
+ "\nBut expected: "
+ remoteStoreDef);
}
} else {
throw new RuntimeException("Your store definition does not match the store definition that is already in the cluster. Have: "
+ newStoreDef
+ "\nBut expected: "
+ remoteStoreDef);
}
}

Expand Down Expand Up @@ -788,6 +793,11 @@ public void verifyAvroSchemaAndVersions(String url, boolean isVersioned) throws
+ "\nBut expected: "
+ remoteStoreDef);
}
} else {
throw new RuntimeException("Your store definition does not match the store definition that is already in the cluster. Have: "
+ newStoreDef
+ "\nBut expected: "
+ remoteStoreDef);
}
}

Expand Down

0 comments on commit 9991605

Please sign in to comment.