From 8594a656c731d2ede87504db5b096f12c795e235 Mon Sep 17 00:00:00 2001 From: Daniel Watkins Date: Thu, 28 Oct 2021 16:45:33 -0400 Subject: [PATCH] cformat.rs: s/string/bytes/ in byte formatting error messages --- vm/src/cformat.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vm/src/cformat.rs b/vm/src/cformat.rs index aade49bb0..79149a967 100644 --- a/vm/src/cformat.rs +++ b/vm/src/cformat.rs @@ -684,7 +684,7 @@ impl CFormatBytes { Ok(result) } else { Err(vm.new_type_error( - "not all arguments converted during string formatting".to_owned(), + "not all arguments converted during bytes formatting".to_owned(), )) }; } @@ -740,8 +740,7 @@ impl CFormatBytes { // check that all arguments were converted if value_iter.next().is_some() && !is_mapping { - Err(vm - .new_type_error("not all arguments converted during string formatting".to_owned())) + Err(vm.new_type_error("not all arguments converted during bytes formatting".to_owned())) } else { Ok(result) }