Commit 2b446f41 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Fail if no open instance has been found

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent 5640bc78
......@@ -96,12 +96,15 @@ main(int argc, char* argv[])
if (synctex_fwd != NULL) {
if (argc != 2) {
girara_error(_("Too many arguments or missing filename while running with --syntex-forward"));
girara_error("Too many arguments or missing filename while running with --syntex-forward");
return -1;
}
if (synctex_forward_position(argv[1], synctex_fwd) == true) {
return 0;
} else {
girara_error("Could not find open instance for '%s'., argv[1]);
return -1;
}
}
......
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