mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 03:02:47 +01:00
Fix error message for bad search term within paragraph in c99std/c11std
This commit is contained in:
parent
4c4bdd9188
commit
38fb275234
@ -13,8 +13,8 @@ use warnings;
|
|||||||
# These are set automatically by the build/commit script
|
# These are set automatically by the build/commit script
|
||||||
use constant {
|
use constant {
|
||||||
BUILD_NAME => "PBot",
|
BUILD_NAME => "PBot",
|
||||||
BUILD_REVISION => 481,
|
BUILD_REVISION => 482,
|
||||||
BUILD_DATE => "2014-02-10",
|
BUILD_DATE => "2014-02-21",
|
||||||
};
|
};
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
@ -169,7 +169,11 @@ while($text =~ m/^\s{0,4}([0-9A-Z]+\.[0-9\.]*)/msg) {
|
|||||||
last if $found && $paragraph_specified == $USER_SPECIFIED;
|
last if $found && $paragraph_specified == $USER_SPECIFIED;
|
||||||
|
|
||||||
if($paragraph_specified == $USER_SPECIFIED) {
|
if($paragraph_specified == $USER_SPECIFIED) {
|
||||||
print "No such paragraph '$paragraph' in section '$section' of n1570.\n";
|
if(length $search) {
|
||||||
|
print "No such text '$search' in paragraph $paragraph of section $section of n1570.\n";
|
||||||
|
} else {
|
||||||
|
print "No such paragraph $paragraph in section $section of n1570.\n";
|
||||||
|
}
|
||||||
exit 0;
|
exit 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -168,7 +168,11 @@ while($text =~ m/^\s{0,4}([0-9A-Z]+\.[0-9\.]*)/msg) {
|
|||||||
last if $found && $paragraph_specified == $USER_SPECIFIED;
|
last if $found && $paragraph_specified == $USER_SPECIFIED;
|
||||||
|
|
||||||
if($paragraph_specified == $USER_SPECIFIED) {
|
if($paragraph_specified == $USER_SPECIFIED) {
|
||||||
print "No such paragraph '$paragraph' in section '$section' of n1256.\n";
|
if(length $search) {
|
||||||
|
print "No such text '$search' found within paragraph $paragraph of section $section of n1256.\n";
|
||||||
|
} else {
|
||||||
|
print "No such paragraph $paragraph in section $section of n1256.\n";
|
||||||
|
}
|
||||||
exit 0;
|
exit 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user