diff --git a/core/automation_gui.cpp b/core/automation_gui.cpp index 5b28b7c37..6548a04c2 100644 --- a/core/automation_gui.cpp +++ b/core/automation_gui.cpp @@ -183,7 +183,7 @@ void DialogAutomationManager::OnAdd(wxCommandEvent &event) wxMessageBox(wxString::Format(_T("Error loading Automation script '%s':\r\n\r\n%s"), sfnames.c_str(), err.message.c_str()), _T("Error loading Automation script"), wxOK | wxICON_ERROR, this); } catch (wxString &err) { - wxMessageBox(wxString::Format(_T("Error loading Automation script %s:\r\n\r\n%s"), sfnames.c_str(), err), _T("Error loading Automation script"), wxOK|wxICON_ERROR, this); + wxMessageBox(wxString::Format(_T("Error loading Automation script %s:\r\n\r\n%s"), sfnames.c_str(), err.c_str()), _T("Error loading Automation script"), wxOK|wxICON_ERROR, this); } catch (wchar_t *err) { wxMessageBox(wxString::Format(_T("Error loading Automation script %s:\r\n\r\n%s"), sfnames.c_str(), err), _T("Error loading Automation script"), wxOK|wxICON_ERROR, this);