Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix endless loop for error case (#63) #64

Closed
wants to merge 1 commit into from
Closed

Conversation

stweil
Copy link
Contributor

@stweil stweil commented Feb 22, 2017

If the temporary file created by OCR was not found, that error was
reported endlessly because the status was never reset.

Signed-off-by: Stefan Weil sw@weilnetz.de

If the temporary file created by OCR was not found, that error was
reported endlessly because the status was never reset.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
@janis91
Copy link
Owner

janis91 commented Mar 23, 2017

You're right with your observation, but I would recommend to set the status to FAILED instead of deleting the status completely. This gives the user more track to the errors, that happened.

$status->setStatus('FAILED');
				
$this->statusMapper->update($status);

also a error log statement could be added.

Next weeks I plan to enhance this. Maybe there will be the possibility to see the error cause in the personal settings section as well then.

@stweil
Copy link
Contributor Author

stweil commented Mar 23, 2017

That sounds good. Then this pull request can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants