More graceful output from failed verification
This commit is contained in:
@@ -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" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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 ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user