Skip to content

Commit

Permalink
Show error msg when save SQL file failed
Browse files Browse the repository at this point in the history
refs #259
  • Loading branch information
arvanus committed Jun 17, 2022
1 parent 495c32c commit 165463b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/ExecuteSqlFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1370,6 +1370,10 @@ void ExecuteSqlFrame::OnMenuSaveOrSaveAs(wxCommandEvent& event)
updateFrameTitleM = true;
statusbar_1->SetStatusText((_("File saved")), 2);
}
else
{
throw FRError(wxString::Format(_("Error saving the file, attention for not losing your SQL\nError code: %d"), GetLastError()));
}
}

void ExecuteSqlFrame::OnMenuClose(wxCommandEvent& WXUNUSED(event))
Expand Down

0 comments on commit 165463b

Please sign in to comment.