diff --git a/util/overwrite_check.c b/util/overwrite_check.c
index 9dcbf9fb0ceaf9f019df7ce8d827df66a6f292e2..9842c320d451dbfd97b756d1d3a0b06899f84e28 100644
--- a/util/overwrite_check.c
+++ b/util/overwrite_check.c
@@ -9,6 +9,6 @@ void overwrite_check(char *path)
 	if (stat(path, &s) || !s.st_size)
 		return; /* We can overwrite non-existing or empty files */
 	if (s.st_uid != getuid())
-		job_failed("Refusing to overwrite output file \"%s\": File was not created by worker");
+		job_failed("Refusing to overwrite output file \"%s\": File was not created by worker", path);
 }