Closed MichaelBuessemeyer closed 2 days ago
The changes in PrecomputedExplorer.scala
focus on enhancing the error message formatting within the layerFromPrecomputedHeader
method. The update allows the error message to dynamically reflect the specific data_type
that caused a failure in determining the elementClass
, replacing the static message "Unknown data type" with "Unknown data type ${precomputedHeader.data_type}". There are no other modifications to the logic or structure of the class.
File | Change Summary |
---|---|
app/com/scalableminds/webknossos/datastore/explore/PrecomputedExplorer.scala |
Updated error message in layerFromPrecomputedHeader to include actual data_type causing failure. |
In the code where errors dwell,
A message now rings clear as a bell.
"Unknown data type," it used to say,
Now it tells us, "Here's what led astray!"
A tweak so small, yet bright and bold,
In the world of data, a story told. 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
I'd say this in an optional change. Feel free to adapt or close this pr @fm3.
The reason for this PR is that the error message stating the type might be more explanatory to the user and to us. Thing might help finding such errors easier :)
Context:
https://scm.slack.com/archives/C02H5T8Q08P/p1731058788439709
Steps to test:
Summary by CodeRabbit