mirror of
https://github.com/BeamMP/Docs.git
synced 2025-08-16 16:35:51 +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
|
||||
-- do something with the directory
|
||||
end
|
||||
|
||||
-- Be careful not to do this! This will ALWAYS be true!
|
||||
if error_message then
|
||||
-- ...
|
||||
end
|
||||
```
|
||||
|
||||
#### `FS.Remove(path: string) -> bool,string`
|
||||
|
Loading…
x
Reference in New Issue
Block a user