Skip to content

fix(image-upload): Fix swallowing of errors for filesystem - #1544

Merged
davidmehren merged 1 commit into
masterfrom
fix/stop-swollowing-errors
Aug 14, 2021
Merged

davidmehren merged 1 commit into
masterfrom
fix/stop-swollowing-errors

Conversation

@SISheogorath

Copy link
Copy Markdown
Contributor

Component/Part

image-upload/filesystem

Description

This patch fixes the swallowing of the actual error message that appears
when a file fails to move, after being uploaded to Hedgedoc on an
instance that is using the upload-method filesystem active.

This became apparent when the error messages provided by some users,
where less than helpful.

As a solution the error message of the copy command was added to the
error that is output to the console.

Steps

  • Added implementation
  • I read the contribution documentation and
    made sure that:
    • My commits are signed-off to accept the DCO.
    • This PR targets the correct branch: master for 1.x & docs, develop for 2.x

Related Issue(s)

https://community.hedgedoc.org/t/image-upload-fail-docker/439

This patch fixes the swollowing of the actual error message that appears
when a file fails to move, after being uploaded to Hedgedoc on an
instance that is using the upload-method `filesystem` active.

This became apparent when the error messages provided by some users,
where less than helpful.

As a solution the error message of the copy command was added to the
error that is output to the console.

https://community.hedgedoc.org/t/image-upload-fail-docker/439

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
@davidmehren davidmehren added this to the Release 1.9 milestone Aug 14, 2021
@davidmehren
davidmehren merged commit 277a242 into master Aug 14, 2021
@davidmehren
davidmehren deleted the fix/stop-swollowing-errors branch August 14, 2021 18:19
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