mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-18 13:12:17 +01:00
Improving error message when the removing of a user profile directory fails
This commit is contained in:
@@ -119,7 +119,7 @@ func (p officePrinter) unoconv(ctx context.Context, fpath, destination string) e
|
|||||||
userProfileDirPath := fmt.Sprintf("/tmp/%d", port)
|
userProfileDirPath := fmt.Sprintf("/tmp/%d", port)
|
||||||
if err := os.RemoveAll(userProfileDirPath); err != nil {
|
if err := os.RemoveAll(userProfileDirPath); err != nil {
|
||||||
// find a way to bubble up this error?
|
// find a way to bubble up this error?
|
||||||
p.logger.ErrorOpf(op, "failed to remove user profile directory '%s'", userProfileDirPath)
|
p.logger.ErrorOpf(op, "failed to remove user profile directory '%s': %s", userProfileDirPath, err.Error())
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// find a way to check it in the handlers?
|
// find a way to check it in the handlers?
|
||||||
|
|||||||
Reference in New Issue
Block a user