Commit 2667d1b4 authored by loh tar's avatar loh tar Committed by Kåre Särs

BuildView: Improve user information when build fails

Summary:
...due to wrong set build path

Reviewers: #kate, #vdg, sars

Reviewed By: #kate, sars

Subscribers: ngraham, sars, kwrite-devel, #kate

Tags: #kate

Differential Revision: https://phabricator.kde.org/D17297
parent c3b2ab00
......@@ -493,7 +493,12 @@ bool KateBuildView::startProcess(const QString &dir, const QString &command)
// set working directory
m_make_dir = dir;
m_make_dir_stack.push(m_make_dir);
// FIXME check
if (!QFile::exists(m_make_dir)) {
KMessageBox::error(nullptr, i18n("Cannot run command: %1\nWork path does not exist: %2", command, m_make_dir));
return false;
}
m_proc.setWorkingDirectory(m_make_dir);
m_proc.setShellCommand(command);
m_proc.start();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment