mirror of
https://github.com/corda/corda.git
synced 2025-02-04 02:01:13 +00:00
Be more verbose when complaining about a non-trivial regex
In particular when constructing regular expressions before compiling them, it is a good idea to state which exact expression is non-trivial when complaining about it. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
parent
b3d4f33522
commit
466a7fc0c0
@ -40,7 +40,7 @@ public class Pattern {
|
|||||||
|
|
||||||
if (! trivial(pattern)) {
|
if (! trivial(pattern)) {
|
||||||
throw new UnsupportedOperationException
|
throw new UnsupportedOperationException
|
||||||
("only trivial regular expressions are supported so far");
|
("only trivial regular expressions are supported so far (" + pattern + ")");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user