X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/d625e80d62fc8b98c18a95c65e6fa329b7fcc85b..0b3f54e8d9366b135697ac1d96c15a85f55fcb62:/projects/sgconf/options.cpp?ds=sidebyside 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()); } }