From 6e3b84d85de7318e66e8283399c71df96ebffaa8 Mon Sep 17 00:00:00 2001 From: Matchman Green Date: Sat, 19 May 2012 09:03:34 +0800 Subject: [PATCH] properly handle exceptions --- grive/src/main.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/grive/src/main.cc b/grive/src/main.cc index 8c671d5..1e85b44 100644 --- a/grive/src/main.cc +++ b/grive/src/main.cc @@ -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!",