mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-11 01:23:46 +01:00
Fail if no open instance has been found
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
5640bc78ec
commit
2b446f4182
5
main.c
5
main.c
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user