Catch exception by reference, not by value
This commit is contained in:
parent
f8591433b1
commit
7b62f6ce2f
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ void LiveMetarProperties::handleMetarData( const std::string & data )
|
|||
try {
|
||||
m = new FGMetar(data.c_str());
|
||||
}
|
||||
catch( sg_io_exception ) {
|
||||
catch( sg_io_exception &) {
|
||||
SG_LOG( SG_ENVIRONMENT, SG_WARN, "Can't parse metar: " << data );
|
||||
_failure = true;
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue