commit - ef293bddb9ff1a451b85d62b6bdf44494e2f1810
commit + 9ba1d3087cee3f7ec5b1b1b8d64631993ac7841f
blob - 4e4e359d901d8a0ede874f4f986969c60b0dd4a8
blob + 5639241ed852fec40a37bd8643d4b3c0a9f280f8
--- got/got.c
+++ got/got.c
case 'r':
repo_path = realpath(optarg, NULL);
if (repo_path == NULL) {
- error = got_error_from_errno("realpath");
+ error = got_error_from_errno2("realpath",
+ optarg);
goto done;
}
break;
path_dir = realpath(argv[0], NULL);
if (path_dir == NULL) {
- error = got_error_from_errno("realpath");
+ error = got_error_from_errno2("realpath", argv[0]);
goto done;
}
got_path_strip_trailing_slashes(path_dir);
case 'r':
repo_path = realpath(optarg, NULL);
if (repo_path == NULL)
- err(1, "-r option");
+ return got_error_from_errno2("realpath",
+ optarg);
got_path_strip_trailing_slashes(repo_path);
break;
default:
case 'r':
repo_path = realpath(optarg, NULL);
if (repo_path == NULL)
- err(1, "-r option");
+ return got_error_from_errno2("realpath",
+ optarg);
got_path_strip_trailing_slashes(repo_path);
break;
case 's':
case 'r':
repo_path = realpath(optarg, NULL);
if (repo_path == NULL)
- err(1, "-r option");
+ return got_error_from_errno2("realpath",
+ optarg);
got_path_strip_trailing_slashes(repo_path);
break;
default:
case 'r':
repo_path = realpath(optarg, NULL);
if (repo_path == NULL)
- err(1, "-r option");
+ return got_error_from_errno2("realpath",
+ optarg);
got_path_strip_trailing_slashes(repo_path);
break;
case 'i':
case 'r':
repo_path = realpath(optarg, NULL);
if (repo_path == NULL)
- err(1, "-r option");
+ return got_error_from_errno2("realpath",
+ optarg);
got_path_strip_trailing_slashes(repo_path);
break;
case 'l':
case 'r':
repo_path = realpath(optarg, NULL);
if (repo_path == NULL)
- err(1, "-r option");
+ return got_error_from_errno2("realpath",
+ optarg);
got_path_strip_trailing_slashes(repo_path);
break;
case 'l':
case 'r':
repo_path = realpath(optarg, NULL);
if (repo_path == NULL)
- err(1, "-r option");
+ return got_error_from_errno2("realpath",
+ optarg);
got_path_strip_trailing_slashes(repo_path);
break;
case 'l':
case 'r':
repo_path = realpath(optarg, NULL);
if (repo_path == NULL)
- err(1, "-r option");
+ return got_error_from_errno2("realpath",
+ optarg);
got_path_strip_trailing_slashes(repo_path);
break;
case 'P':
blob - a83600dda9f9ca0a7cb7b1d6de615794f08242cb
blob + 07efa35110e6f0b735745c6382c20282fa47f0b9
--- tog/tog.c
+++ tog/tog.c
case 'r':
repo_path = realpath(optarg, NULL);
if (repo_path == NULL)
- err(1, "-r option");
+ return got_error_from_errno2("realpath",
+ optarg);
break;
default:
usage_log();
case 'r':
repo_path = realpath(optarg, NULL);
if (repo_path == NULL)
- err(1, "-r option");
+ return got_error_from_errno2("realpath",
+ optarg);
break;
default:
usage_blame();