Skip to content
⌘ NSIS Forum Archive

How to capture error messages?

5 posts

slloyd#

How to capture error messages?

Is there a way to capture the error messages on a CopyFiles?
I can capture that an error occured but I do not know why.

This is especially true if CopyFiles is pointing to a directory with many files. The details says Copy Failed but it would be nice to know why.

Thanks
kichik#
There is none. You can manually try to figure it out. For examples, you can check with IfFileExists if the destination directory exists.
slloyd#
How about other errors?
I can use ClearErrors and IfErrors but is there a way to capture the error number? The nullsoft error handling needs to be beefed up, don't you think?

Steve