There is a list of Mac error codes in the Carbon CoreServices framework header file. To search it, you can just use grep, or the following shell script:
#!/bin/sh # NOTE: Enter the following two lines as one line # without ANY additional spaces: /usr/bin/grep "$1" /System/Library/Frameworks/CoreServices.framework/ Versions/A/Frameworks/CarbonCore.framework/Headers/MacErrors.hGive it a name, save it and make it executable (chmod script_name 755). Once saved, you can do something like this (assuming a script name of "errcode"):
% % errcode 5402 qtsBadDataErr = -5402, /* something is wrong with the data */This script helped me find out why I was unable to save to disk at one time -- my disk quota was up, and instead of telling me directly, it gave me an error code I had to look up. Hope this helps someone else.
Mac OS X Hints
http://hints.macworld.com/article.php?story=20030603220554690