X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/d625e80d62fc8b98c18a95c65e6fa329b7fcc85b..9977f098136de2dd74a62de2fc535cbdfafcda1f:/projects/sgconf/options.cpp diff --git a/projects/sgconf/options.cpp b/projects/sgconf/options.cpp index 06889174..6fddaf38 100644 --- a/projects/sgconf/options.cpp +++ b/projects/sgconf/options.cpp @@ -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()); } }