mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
toml: update returns from option to result type (#18065)
This commit is contained in:
parent
c63902baf0
commit
8f767c9189
@ -44,7 +44,7 @@ def normalize: sorted_walk(if type == "array" then sort else . end);
|
||||
normalize'
|
||||
)
|
||||
|
||||
fn run(args []string) ?string {
|
||||
fn run(args []string) !string {
|
||||
res := os.execute(args.join(' '))
|
||||
if res.exit_code != 0 {
|
||||
return error('${args[0]} failed with return code ${res.exit_code}.\n${res.output}')
|
||||
|
@ -60,7 +60,7 @@ def normalize: sorted_walk(if type == "array" then sort else . end);
|
||||
normalize'
|
||||
)
|
||||
|
||||
fn run(args []string) ?string {
|
||||
fn run(args []string) !string {
|
||||
res := os.execute(args.join(' '))
|
||||
if res.exit_code != 0 {
|
||||
return error('${args[0]} failed with return code ${res.exit_code}.\n${res.output}')
|
||||
|
Loading…
Reference in New Issue
Block a user