mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-15 09:27:38 +00:00
builtin_test.cpp: split a long line, add braces
This commit is contained in:
parent
1f871c4d0c
commit
b404b9392c
1 changed files with 5 additions and 3 deletions
|
@ -668,10 +668,12 @@ static bool parse_number(const wcstring &arg, number_t *number, wcstring_list_t
|
||||||
} else {
|
} else {
|
||||||
// We could not parse a float or an int.
|
// We could not parse a float or an int.
|
||||||
// Check for special fish_wcsto* value or show standard EINVAL/ERANGE error.
|
// Check for special fish_wcsto* value or show standard EINVAL/ERANGE error.
|
||||||
if (errno == -1)
|
if (errno == -1) {
|
||||||
errors.push_back(format_string(_(L"Integer %lld in '%ls' followed by non-digit"), integral, argcs));
|
errors.push_back(format_string(_(L"Integer %lld in '%ls' followed by non-digit"),
|
||||||
else
|
integral, argcs));
|
||||||
|
} else {
|
||||||
errors.push_back(format_string(L"%s: '%ls'", strerror(errno), argcs));
|
errors.push_back(format_string(L"%s: '%ls'", strerror(errno), argcs));
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue