mirror of
https://github.com/BeamMP/Docs.git
synced 2026-04-13 11:26:33 +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:
@@ -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`
|
||||||
|
|||||||
Reference in New Issue
Block a user