Skip to content

Commit 5e4b552

Browse files
committed
Yet another
1 parent 6443025 commit 5e4b552

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ario/ario.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ class ario
438438
pstream->read( &magic[0], arch_magic_size );
439439
if ( magic != arch_magic ) {
440440
return { std::string( "Invalid archive format. Expected magic: " ) +
441-
arch_magic };
441+
arch_magic + ", but got " + magic };
442442
}
443443

444444
return {};

tests/ARIOTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ TEST( ARIOTest, wrong_file_magic )
4646
auto result = archive.load( "ario/invalid_magic.a" );
4747
ASSERT_EQ( result.ok(), false );
4848
ASSERT_EQ( result.what(),
49-
"Invalid archive format. Expected magic: !<arch>\n" );
49+
"Invalid archive format. Expected magic: !<arch>\n, but got !<arkh>\n" );
5050
}
5151

5252
////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)