Skip to content

Commit

Permalink
Add message for failed models on migration. (#54)
Browse files Browse the repository at this point in the history
Returning back an message, what happens.
  • Loading branch information
michelu89 authored Nov 30, 2023
1 parent 3428690 commit 594cfca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@
@Data
@AllArgsConstructor
public class FileInformation {

@JsonInclude( JsonInclude.Include.NON_NULL )
@JsonProperty( "name" )
public String name;

@JsonInclude( JsonInclude.Include.NON_NULL )
@JsonProperty( "success" )
public Boolean success;

@JsonProperty( "message" )
public String message;
}
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ private void namespaceFileInfo( final Namespace namespace, final Try<VersionedMo
}

final FileInformation aspectModelFile = new FileInformation( fileName + ModelUtils.TTL_EXTENSION,
modelIsSuccess );
modelIsSuccess, model.isSuccess() ? "File is valid" : model.getCause().getMessage() );

namespace.addAspectModelFile( aspectModelFile );
}
Expand Down

0 comments on commit 594cfca

Please sign in to comment.