]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/store/files/file_store.cpp
Catch exception via const reference instead of value
[stg.git] / projects / stargazer / plugins / store / files / file_store.cpp
index e7d5ebaa41afed890f44fded1aa80977e31aed6f..1eaef6424cbc65c06eb381587244a8801a3a6ae7 100644 (file)
@@ -783,7 +783,7 @@ try
     {
     i = StrToIPS(ipStr);
     }
-catch (string s)
+catch (const string & s)
     {
     STG_LOCKER lock(&mutex, __FILE__, __LINE__);
     errorStr = "User \'" + login + "\' data not read. Parameter IP address. " + s;