Fix '%b' pattern error message.

This commit is contained in:
Enyby
2019-11-09 23:25:58 +02:00
parent 0f0ec4bf7b
commit ee2d5284e7

View File

@@ -1201,7 +1201,7 @@ public class StringLib extends TwoArgFunction {
int matchbalance( int soff, int poff ) { int matchbalance( int soff, int poff ) {
final int plen = p.length(); final int plen = p.length();
if ( poff == plen || poff + 1 == plen ) { if ( poff == plen || poff + 1 == plen ) {
error( "unbalanced pattern" ); error( "malformed pattern (missing arguments to '%b')" );
} }
final int slen = s.length(); final int slen = s.length();
if ( soff >= slen ) if ( soff >= slen )