From ea0fcfacb32f3a0fe05ed7167e4a8675647e8ef0 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Fri, 5 Jul 2013 11:32:13 +0200 Subject: [PATCH] cmdparse.cc: catch exception by reference Signed-off-by: Danny Al-Gaaf --- src/common/cmdparse.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/cmdparse.cc b/src/common/cmdparse.cc index 26bcde3fdac7e..370591cb3bb31 100644 --- a/src/common/cmdparse.cc +++ b/src/common/cmdparse.cc @@ -185,7 +185,7 @@ cmdmap_from_json(vector cmd, map *mapp, stringstrea } } return true; - } catch (runtime_error e) { + } catch (runtime_error &e) { ss << e.what(); return false; } -- 2.39.5