System.out is closed after marshalling config to console
@@ -53,7 +53,6 @@ public class MigrateCommand implements Callable<Config> {
try(OutputStream outputStream = new TeeOutputStream(Files.newOutputStream(outputFile),System.out)) {
JaxbUtil.marshal(config, outputStream);
- }
net.consensys.orion.config.Config orionConfig = orionKeyHelper.getOrionConfig();
//TODO: add any other orion config validations
@@ -82,6 +81,7 @@ public class MigrateCommand implements Callable<Config> {
System.out.println();
assert outcome.get(PayloadType.ENCRYPTED_PAYLOAD) == migrationInfo.getTransactionCount();
assert outcome.get(PayloadType.PRIVACY_GROUP_PAYLOAD) == migrationInfo.getPrivacyGroupCount();
+ }
return config;
}
