Last active
May 6, 2021 00:47
-
-
Save kastiglione/76f337d0e640397d41f0be5419930150 to your computer and use it in GitHub Desktop.
Help identify a raw error code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wut() { | |
readonly error_code=$1 | |
local domain | |
for domain in posix mach; do | |
tput bold; echo $domain; tput sgr0 | |
launchctl error $domain $error_code | |
done | |
tput bold; echo security; tput sgr0 | |
security error $error_code | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example: