1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

repl: handle exit(n) (#13930)

This commit is contained in:
pancake
2022-04-04 15:22:34 +02:00
committed by GitHub
parent 92bfd9b353
commit 5369379738
2 changed files with 16 additions and 5 deletions

View File

@@ -203,7 +203,7 @@ pub fn mv(src string, dst string) ? {
} $else {
ret := C.rename(&char(src.str), &char(rdst.str))
if ret != 0 {
return error_with_code('failed to rename $src to $dst', int(ret))
return error_with_code('failed to rename $src to $dst', ret)
}
}
}