Skip to content

Commit

Permalink
Add new line to a few error messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
hotchkiss87 committed Jul 1, 2017
1 parent a9303a1 commit 1d862a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/baseapi.cpp
Expand Up @@ -888,7 +888,7 @@ int TessBaseAPI::RecognizeForChopTest(ETEXT_DESC* monitor) {
if (tesseract_ == NULL)
return -1;
if (thresholder_ == NULL || thresholder_->IsEmpty()) {
tprintf("Please call SetImage before attempting recognition.");
tprintf("Please call SetImage before attempting recognition.\n");
return -1;
}
if (page_res_ != NULL)
Expand Down Expand Up @@ -2173,7 +2173,7 @@ void TessBaseAPI::SetFillLatticeFunc(FillLatticeFunc f) {
/** Common code for setting the image. */
bool TessBaseAPI::InternalSetImage() {
if (tesseract_ == NULL) {
tprintf("Please call Init before attempting to set an image.");
tprintf("Please call Init before attempting to set an image.\n");
return false;
}
if (thresholder_ == NULL)
Expand Down Expand Up @@ -2234,7 +2234,7 @@ bool TessBaseAPI::Threshold(Pix** pix) {
/** Find lines from the image making the BLOCK_LIST. */
int TessBaseAPI::FindLines() {
if (thresholder_ == NULL || thresholder_->IsEmpty()) {
tprintf("Please call SetImage before attempting recognition.");
tprintf("Please call SetImage before attempting recognition.\n");
return -1;
}
if (recognition_done_)
Expand Down

0 comments on commit 1d862a5

Please sign in to comment.