mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-08 08:54:41 -04:00
Added device error message to file open error messages
Thanks to Mike W9MDB for contributing this as a patch. Also added a few more in elsewhere. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4883 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
+1
-1
@@ -161,7 +161,7 @@ void HRDTransceiver::do_start ()
|
||||
QFile HRD_info_file {QDir {QStandardPaths::writableLocation (QStandardPaths::DataLocation)}.absoluteFilePath ("HRD Interface Information.txt")};
|
||||
if (!HRD_info_file.open (QFile::WriteOnly | QFile::Text | QFile::Truncate))
|
||||
{
|
||||
throw error {tr ("Failed to open file \"%1\".").arg (HRD_info_file.fileName ())};
|
||||
throw error {tr ("Failed to open file \"%1\": %2.").arg (HRD_info_file.fileName ()).arg (HRD_info_file.errorString ())};
|
||||
}
|
||||
QTextStream HRD_info {&HRD_info_file};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user