From dff7f076f70078eafe996e0e9e7b06a6531f71f1 Mon Sep 17 00:00:00 2001 From: Nick Sanford Date: Fri, 6 Sep 2024 11:27:36 -0400 Subject: [PATCH] wip --- services/datamanager/builtin/sync/upload_arbitrary_file.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/services/datamanager/builtin/sync/upload_arbitrary_file.go b/services/datamanager/builtin/sync/upload_arbitrary_file.go index 15439a5cfb8e..82781c2ac4de 100644 --- a/services/datamanager/builtin/sync/upload_arbitrary_file.go +++ b/services/datamanager/builtin/sync/upload_arbitrary_file.go @@ -66,9 +66,7 @@ func uploadArbitraryFile( } if pos != 0 { - msg := "error trying to Seek to beginning of file %s attempted to seek to " + - "beginning of file but only got to position: %d, expected to be at position 0" - return fmt.Errorf(msg, path, pos) + return fmt.Errorf("error trying to seek to beginning of file %s: expected position 0, instead got to position %d.", path, pos) } logger.Debugf("datasync.FileUpload request started for arbitrary file: %s", path)