properly handle exceptions

pull/40/head
Matchman Green 2012-05-19 09:03:34 +08:00
parent f2a659ce5e
commit 6e3b84d85d
1 changed files with 2 additions and 1 deletions

View File

@ -100,8 +100,9 @@ int main( int argc, char **argv )
{
refresh_token = config.Get()["refresh_token"].Str() ;
}
catch ( const std::runtime_error& error )
catch ( Exception& e )
{
Trace( "cannot read config: %1%", boost::diagnostic_information(e) ) ;
Log(
"Please run grive with the \"-a\" option if this is the "
"first time you're accessing your Google Drive!",