Skip to content

Commit

Permalink
Formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel authored Oct 22, 2020
1 parent ba91bb9 commit 274c73d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/sensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,13 +509,13 @@ namespace librealsense
catch( std::exception const & e )
{
_user_count.fetch_add( -1 );
LOG_ERROR( "acquire_power failed " << e.what() );
LOG_ERROR( "acquire_power failed: " << e.what() );
throw;
}
catch (...)
catch( ... )
{
_user_count.fetch_add( -1 );
LOG_ERROR( "acquire_power failed " );
LOG_ERROR( "acquire_power failed" );
throw;
}
}
Expand All @@ -530,14 +530,15 @@ namespace librealsense
{
_device->set_power_state( platform::D3 );
}

catch( std::exception const & e )
{
LOG_ERROR( "release_power failed " << e.what() );
// TODO may need to change the user-count?
LOG_ERROR( "release_power failed: " << e.what() );
}
catch( ... )
{
LOG_ERROR( "release_power failed " );
// TODO may need to change the user-count?
LOG_ERROR( "release_power failed" );
}
}
}
Expand Down

0 comments on commit 274c73d

Please sign in to comment.