Skip to content

Commit

Permalink
Add error logger; #841
Browse files Browse the repository at this point in the history
  • Loading branch information
PropzSaladaz committed Jan 27, 2025
1 parent 5033d9f commit 486a995
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sgxclient/SgxZmqMessage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ shared_ptr< SgxZmqMessage > SgxZmqMessage::parse(

CHECK_STATE( ( *d )["status"].IsNumber() )
uint64_t status = ( *d )["status"].GetInt64();

if ( status != 0 ) {
LOG( err, ( *d )["errorMessage"].GetString() );
}

CHECK_STATE( status == 0 );

CHECK_STATE( d->HasMember( "type" ) );
Expand Down

0 comments on commit 486a995

Please sign in to comment.