From 0b75eaed92161d0ac83bdc18d89f741f831db941 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Tue, 22 Aug 2017 18:48:04 +0200 Subject: [PATCH] missing argument for sprintf --- lib/imagefile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/imagefile.php b/lib/imagefile.php index 22fdda9d30..80bc90f125 100644 --- a/lib/imagefile.php +++ b/lib/imagefile.php @@ -163,7 +163,7 @@ class ImageFile // doesn't exist anyway, so it's safe to delete $imgPath @unlink($imgPath); } - common_debug(sprintf('Exception caught when creating ImageFile for File id==%s and imgPath==', _ve($file->id), _ve($imgPath))); + common_debug(sprintf('Exception %s caught when creating ImageFile for File id==%s and imgPath==%s: %s', get_class($e), _ve($file->id), _ve($imgPath), _ve($e->getMessage()))); throw $e; } return $image; -- 2.39.5