]> git.stg.codes - stg.git/blobdiff - projects/sgconf/options.cpp
Beautified error notification.
[stg.git] / projects / sgconf / options.cpp
index 06889174b0b2d7eb5aedb57f9c402ad0ce08fde1..6fddaf38583a4e5462a69426d5210fcc000d479a 100644 (file)
@@ -103,7 +103,10 @@ try
     }
 catch (const ACTION::ERROR & ex)
     {
-    throw ERROR(m_longName + ": " + ex.what());
+    if (m_longName.empty())
+        throw ERROR("-" + m_shortName + ": " + ex.what());
+    else
+        throw ERROR("--" + m_longName + ", -" + m_shortName + ": " + ex.what());
     }
 }