Skip to content

Commit 3b8c47e

Browse files
committed
Better thres error message
1 parent 431f5f4 commit 3b8c47e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/palet/edit.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ proc parseThres(val: string): float32 =
5252
error &"Unknown unit: {unit}"
5353

5454
if result < 0 or result > 1:
55-
error &"Invalid threshold: {val}"
55+
error &"Threshold not in range: {val} ({result})"
5656

5757
proc parseNat(val: string): int32 =
5858
result = int32(parseInt(val))

0 commit comments

Comments
 (0)