@@ -651,14 +651,16 @@ impl ConfigCodeBlock {
651
651
652
652
if self . config_name . is_none ( ) {
653
653
write_message ( format ! (
654
- "configuration name not found for block beginning at line {}" ,
654
+ "No configuration name for {}:{}" ,
655
+ CONFIGURATIONS_FILE_NAME ,
655
656
self . code_block_start. unwrap( )
656
657
) ) ;
657
658
return false ;
658
659
}
659
660
if self . config_value . is_none ( ) {
660
661
write_message ( format ! (
661
- "configuration value not found for block beginning at line {}" ,
662
+ "No configuration value for {}:{}" ,
663
+ CONFIGURATIONS_FILE_NAME ,
662
664
self . code_block_start. unwrap( )
663
665
) ) ;
664
666
return false ;
@@ -669,9 +671,9 @@ impl ConfigCodeBlock {
669
671
fn has_parsing_errors ( & self , error_summary : Summary ) -> bool {
670
672
if error_summary. has_parsing_errors ( ) {
671
673
write_message ( format ! (
672
- "\u{261d} \u{1f3fd} Failed to format block starting at Line {} in {}" ,
673
- self . code_block_start . unwrap ( ) ,
674
- CONFIGURATIONS_FILE_NAME
674
+ "\u{261d} \u{1f3fd} Cannot format {}: {}" ,
675
+ CONFIGURATIONS_FILE_NAME ,
676
+ self . code_block_start . unwrap ( )
675
677
) ) ;
676
678
return true ;
677
679
}
0 commit comments