File tree 2 files changed +13
-3
lines changed
tools/move-package/src/source_package
2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -267,7 +267,11 @@ pub struct AccountAddressParseError;
267
267
268
268
impl fmt:: Display for AccountAddressParseError {
269
269
fn fmt ( & self , f : & mut fmt:: Formatter ) -> std:: fmt:: Result {
270
- write ! ( f, "Unable to parse AccountAddress" )
270
+ write ! (
271
+ f,
272
+ "Unable to parse AccountAddress (must be hex string of length {})" ,
273
+ AccountAddress :: LENGTH
274
+ )
271
275
}
272
276
}
273
277
Original file line number Diff line number Diff line change @@ -213,7 +213,10 @@ pub fn parse_addresses(tval: TV) -> Result<PM::AddressDeclarations> {
213
213
} else if addresses
214
214
. insert (
215
215
ident,
216
- Some ( parse_address_literal ( entry_str) . context ( "Invalid address" ) ?) ,
216
+ Some ( parse_address_literal ( entry_str) . context ( format ! (
217
+ "Invalid address '{}' encountered." ,
218
+ entry_str
219
+ ) ) ?) ,
217
220
)
218
221
. is_some ( )
219
222
{
@@ -251,7 +254,10 @@ pub fn parse_dev_addresses(tval: TV) -> Result<PM::DevAddressDeclarations> {
251
254
} else if addresses
252
255
. insert (
253
256
ident,
254
- parse_address_literal ( entry_str) . context ( "Invalid address" ) ?,
257
+ parse_address_literal ( entry_str) . context ( format ! (
258
+ "Invalid address '{}' encountered." ,
259
+ entry_str
260
+ ) ) ?,
255
261
)
256
262
. is_some ( )
257
263
{
You can’t perform that action at this time.
0 commit comments