Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jan 12, 2024
1 parent 73fd4e7 commit 745aac9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,15 @@ private File getRelatedFile(final String name) {
squareDist += colorDist * colorDist;
}
} else if (maskPixel[0] != 0) {
throw new RuntimeException("Mask image must be only black and white (0 and 255)");
throw new RuntimeException(
"Mask image must be only black and white (0 and 255), got "
+ maskPixel[0]
+ " at "
+ x
+ ","
+ y
+ " in "
+ this.maskImage);
}
double pxDiff = Math.sqrt(squareDist / this.expectedImage.getSampleModel().getNumBands());
dist += pxDiff / 255;
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ services:
user: ${USER_ID}
command: tail --follow /dev/null
volumes:
- ./examples/src:/src/examples/src:ro
- ./examples/src/test/resources/examples:/src/examples/src/test/resources/examples
- ./examples/build/reports:/src/examples/build/reports
- ./examples/build/resources:/src/examples/build/resources
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 745aac9

Please sign in to comment.