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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user