Change-Id: I0e152da4340c8cf6c84632cb1822ba2b6f25b03a
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
errStr = "Internal error.";
break;
}
- ERROR(SINK, errStr + e.what());
+
+ if (e.error() == TRUST_ANCHOR_ERROR_NOT_INSTALLED)
+ INFO(SINK, e.what());
+ else
+ ERROR(SINK, errStr + e.what());
+
return e.error();
} catch (const runtime::Exception &e) {
ERROR(SINK, e.what());
m_message(FORMAT("[" << file << ":" << line << " " <<
function << "()]" << message))
{
- ERROR(SINK, this->m_message);
}
const char *Exception::what() const noexcept
void TrustAnchor::Impl::preLaunch(void)
{
if (!this->m_logic.isCustomBaseValid())
- ThrowExc(TRUST_ANCHOR_ERROR_NOT_INSTALLED, "Base directory does not exist.");
+ ThrowExc(TRUST_ANCHOR_ERROR_NOT_INSTALLED, "Tanchor is not installed before.");
if (!this->m_logic.isSystemCertsUsed())
return;