mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-15 16:03:55 +02:00
Improve the 'invalid architecture' error message
Not that I'm expecting to ever see this error message.
This commit is contained in:
@@ -627,12 +627,15 @@ PluginArchitecture find_plugin_architecture(fs::path plugin_path) {
|
|||||||
case 0x0000: // IMAGE_FILE_MACHINE_UNKNOWN
|
case 0x0000: // IMAGE_FILE_MACHINE_UNKNOWN
|
||||||
return PluginArchitecture::vst_64;
|
return PluginArchitecture::vst_64;
|
||||||
break;
|
break;
|
||||||
default:
|
default: {
|
||||||
throw std::runtime_error(
|
std::ostringstream error_msg;
|
||||||
"'" + plugin_path.string() +
|
error_msg << "'" << plugin_path
|
||||||
"' does not have a supported architecture: " +
|
<< "' is neither a x86 nor a x86_64 PE32 file. Actual "
|
||||||
std::to_string(machine_type));
|
"architecture: 0x"
|
||||||
break;
|
<< std::hex << machine_type;
|
||||||
|
|
||||||
|
throw std::runtime_error(error_msg.str());
|
||||||
|
} break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user