Skip to content

Commit

Permalink
detailed error message. (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
portlek authored Oct 1, 2024
1 parent ba3f169 commit 7773f25
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ private int customModelData(final PackGeneratorContext context) {
final Integer offset = context.packReference().customModelDataOffset();
if (offset == null) {
throw new IllegalStateException(
"Custom model data offset cannot be null when custom-model-data not specified!"
String.format(
"Custom model data offset cannot be null when custom-model-data not specified (%s)!",
this.extractKey(context)
)
);
}

Expand Down

0 comments on commit 7773f25

Please sign in to comment.