mirror of
https://github.com/BeamMP/Docs.git
synced 2025-08-17 17:05:56 +00:00
add: extra warning not to trust error message
The returned error message is ALWAYS true due to always being a string (`""`).
This commit is contained in:
parent
117ab90e16
commit
b943ee6192
@ -731,6 +731,11 @@ if not success then
|
|||||||
else
|
else
|
||||||
-- do something with the directory
|
-- do something with the directory
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Be careful not to do this! This will ALWAYS be true!
|
||||||
|
if error_message then
|
||||||
|
-- ...
|
||||||
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
#### `FS.Remove(path: string) -> bool,string`
|
#### `FS.Remove(path: string) -> bool,string`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user