Skip to content

Commit

Permalink
Add new OpenSSL Exceptions
Browse files Browse the repository at this point in the history
Signed-off-by: Jelena Sanko <jelena@raulwalter.com>
  • Loading branch information
jsanko committed Jul 26, 2021
1 parent 18e6112 commit a437b5e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions client/DigiDoc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,10 @@ void DigiDoc::parseException(const Exception &e, QStringList &causes, Exception:
case Exception::PINFailed:
case Exception::PINIncorrect:
case Exception::PINLocked:
case Exception::HostNotFound:
case Exception::InvalidUrl:
code = e.code();
break;
default: break;
}
for(const Exception &c: e.causes())
Expand Down Expand Up @@ -626,6 +629,15 @@ void DigiDoc::setLastError( const QString &msg, const Exception &e )
qApp->showWarning(tr("PIN Incorrect"), causes.join('\n')); break;
case Exception::PINLocked:
qApp->showWarning(tr("PIN Locked. Unblock to reuse PIN."), causes.join('\n')); break;
case Exception::HostNotFound:
qApp->showWarning(tr("Failed to sign container. "
"Connecting to network service is failed! Please check your network connection. "
"(Or Check your Time-Stamping service access settings.)"), causes.join('\n'));
break;
case Exception::InvalidUrl:
qApp->showWarning(tr("Failed to sign container. "
"Incorrect URL is provided.)"), causes.join('\n'));
break;
default:
qApp->showWarning(msg, causes.join('\n')); break;
}
Expand Down

0 comments on commit a437b5e

Please sign in to comment.