tree-wide: propagate error code from _from_string() functions

Now that we know we have something useful, no need to make an answer up.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2021-02-10 14:46:59 +01:00
parent 751db3b4cd
commit 7211c853c2
27 changed files with 62 additions and 81 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ static int run(int argc, char *argv[]) {
/* The kernel command line always wins. However if nothing was set there, the argument passed here wins instead. */
m = volatile_mode_from_string(argv[1]);
if (m < 0)
return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Couldn't parse volatile mode: %s", argv[1]);
return log_error_errno(m, "Couldn't parse volatile mode: %s", argv[1]);
}
if (argc < 3)