More graceful output from failed verification

This commit is contained in:
Keith Winstein
2012-05-05 01:53:28 -04:00
parent 3573cec92a
commit 43182729ec
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ void TransportSender<MyState>::tick( void )
MyState newstate( assumed_receiver_state->state ); MyState newstate( assumed_receiver_state->state );
newstate.apply_string( diff ); newstate.apply_string( diff );
if ( current_state.compare( newstate ) ) { if ( current_state.compare( newstate ) ) {
fprintf( stderr, "Diff: %s\n", diff.c_str() ); fprintf( stderr, "Warning, round-trip Instruction verification failed!\n" );
} }
} }
+1 -2
View File
@@ -589,8 +589,7 @@ bool Cell::compare( const Cell &other ) const
if ( !(renditions == other.renditions) ) { if ( !(renditions == other.renditions) ) {
ret = true; ret = true;
fprintf( stderr, "renditions: %s vs. %s\n", fprintf( stderr, "renditions differ\n" );
renditions.sgr().c_str(), other.renditions.sgr().c_str() );
} }
if ( wrap != other.wrap ) { if ( wrap != other.wrap ) {