avoid copying incomplete type in catch
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@123 15ad00c4-1369-45f4-8270-35d70d36bdcd
This commit is contained in:
parent
cc1aac2389
commit
1b773c5726
|
@ -93,7 +93,7 @@ int main( int argc, char **argv )
|
|||
client.sync(SYNC_NONE, true);
|
||||
}
|
||||
return 0;
|
||||
} catch ( std::exception ex ) {
|
||||
} catch ( const std::exception &ex ) {
|
||||
LOG.error( ex.what() );
|
||||
} catch (...) {
|
||||
LOG.error( "unknown error" );
|
||||
|
|
Loading…
Reference in New Issue