Skip to content

Rendering newline in error doesn't help user #259

@epage

Description

@epage

This is a regression compared to toml-rs as found by cargo's test suites

---- bad_config::malformed_override stdout ----                                                                                                    
running `/home/epage/src/personal/cargo/target/debug/cargo build`                                                                                  
thread 'bad_config::malformed_override' panicked at '                                                                                              
test failed running `/home/epage/src/personal/cargo/target/debug/cargo build`                                                                      
error: stderr did not match:                                                                                                                       
1   1     error: failed to parse manifest at `[..]`                                                                                                
2   2                                                                                                                                              
3   3     Caused by:                                                                                                                               
4   4       could not parse input as TOML                                                                                                          
5   5                                                                                                                                              
6   6     Caused by:                                                                                                                               
7        -  expected a table key, found a newline at line 8 column 27                                                                              
    7    +  TOML parse error at line 8, column 27                                                                                                  
    8    +    |                                                          
    9    +  8 |                 native = {                                                                                                         
    10   +    |                           ^                                                                                                        
    11   +  Unexpected `                                                 
    12   +  `                                                            

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-errorArea: Error reportingC-bugCategory: Things not working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions