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

handle failed preview generation #51

Merged
merged 2 commits into from
May 2, 2017

Conversation

icewind1991
Copy link
Member

@@ -204,6 +205,9 @@ private function parseFile(File $file) {
}
} catch (NotFoundException $e) {
// Maybe log that previews could not be generated?
} catch (\InvalidArgumentException $e) {
$error = $e->getMessage();
$this->output->writeln("<error>${error}</error>");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also add this to the PreGenerate command

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@codecov-io
Copy link

Codecov Report

Merging #51 into master will decrease coverage by 0.05%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #51      +/-   ##
=========================================
- Coverage    5.01%   4.96%   -0.06%     
=========================================
  Files           6       6              
  Lines         259     262       +3     
=========================================
  Hits           13      13              
- Misses        246     249       +3
Impacted Files Coverage Δ
lib/Command/Generate.php 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d39f3c4...e8096ac. Read the comment docs.

@rullzer rullzer merged commit f4a3d9c into nextcloud:master May 2, 2017
@icewind1991 icewind1991 deleted the error-handling branch May 3, 2017 10:53
@rullzer rullzer added this to the 1.0.6 milestone May 3, 2017
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.

4 participants