nefarius / Injector

Command line utility to inject and eject DLLs
MIT License
598 stars 99 forks source link

Log errors to the standard error channel #7

Closed m417z closed 4 years ago

m417z commented 4 years ago

Thanks for the nifty tool. It would be also handy to have the tool return a non-zero code on failure. I wanted to add it to the pull request, but you chose to make the main function return a system error, and there's no "general failure" system error. I'll leave it to you to decide which value to return. Thanks.

nefarius commented 4 years ago

LGTM, thank you for the contribution!

The choice for Windows system error codes as return values has historical reasons, be my guest to suggest something more useful!

Cheers