Currently if an file operation (like creating the au3pm folder) fails, we get a generic error message.
AutoIt3 file operation methods does not help this, with a simple 0 or 1 for indicating success.
As a result functions like CreateDirectoryA need to be used, to be able to get last API error if something goes wrong.
This is easy to test, we just need a folder (au3pm) and file (au3pm.json) that use write protection.
Currently if an file operation (like creating the
au3pmfolder) fails, we get a generic error message.AutoIt3 file operation methods does not help this, with a simple 0 or 1 for indicating success.
As a result functions like
CreateDirectoryAneed to be used, to be able to get last API error if something goes wrong.This is easy to test, we just need a folder (
au3pm) and file (au3pm.json) that use write protection.