Skip to content

Commit

Permalink
Better error message for manually configured array sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
Piedone committed Sep 21, 2023
1 parent 8741f69 commit 62cf446
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Hastlayer/Hast.Transformer/Models/IArraySizeHolder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ public static IArraySize GetSizeOrThrow(this IArraySizeHolder arraySizeHolder, A
if (size == null)
{
throw new NotSupportedException(
"The length of the array holder " + arrayHolder.GetFullName() +
" couldn't be statically determined. Only arrays with dimensions defined at compile-time are " +
"supported. If the array size is actually static just Hastlayer can't figure it out for some " +
"reason then you can configure it manually via TransformerConfiguration.");
"The length of the array holder \"" + arrayHolder.GetFullName() + "\" couldn't be statically " +
"determined. Only arrays with dimensions defined at compile-time are supported. If the array size is " +
"actually static just Hastlayer can't figure it out for some reason then you can configure it " +
"manually via TransformerConfiguration by using the quoted full name.");
}

return size;
Expand Down

0 comments on commit 62cf446

Please sign in to comment.