mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 00:20:43 +00:00
Improve VCS error message when RCS is not installed.
User's report that it takes time to realize what package is 'ci' part of, so we can give a hint for the initial file registration.
This commit is contained in:
parent
c30b0aac4b
commit
b670990bc1
@ -58,11 +58,15 @@ int VCS::doVCCommand(string const & cmd, FileName const & path, bool reportError
|
|||||||
|
|
||||||
if (owner_)
|
if (owner_)
|
||||||
owner_->setBusy(false);
|
owner_->setBusy(false);
|
||||||
if (ret && reportError)
|
if (ret && reportError) {
|
||||||
|
docstring rcsmsg;
|
||||||
|
if (prefixIs(cmd, "ci "))
|
||||||
|
rcsmsg = "\n" + _("Perhaps the RCS package is not installed on your system?");
|
||||||
frontend::Alert::error(_("Revision control error."),
|
frontend::Alert::error(_("Revision control error."),
|
||||||
bformat(_("Some problem occurred while running the command:\n"
|
bformat(_("Some problem occurred while running the command:\n"
|
||||||
"'%1$s'."),
|
"'%1$s'.") + rcsmsg,
|
||||||
from_utf8(cmd)));
|
from_utf8(cmd)));
|
||||||
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user