From: <ama...@us...> - 2007-02-01 05:44:49
|
Revision: 9502 http://svn.sourceforge.net/bibdesk/?rev=9502&view=rev Author: amaxwell Date: 2007-01-31 21:44:50 -0800 (Wed, 31 Jan 2007) Log Message: ----------- Display host info in case we get a numeric stack trace and need to know what architecture to pass atos. Modified Paths: -------------- trunk/bibdesk/BDSKReadMeController.m Modified: trunk/bibdesk/BDSKReadMeController.m =================================================================== --- trunk/bibdesk/BDSKReadMeController.m 2007-02-01 02:19:48 UTC (rev 9501) +++ trunk/bibdesk/BDSKReadMeController.m 2007-02-01 05:44:50 UTC (rev 9502) @@ -37,6 +37,7 @@ */ #import "BDSKReadMeController.h" +#include <sys/utsname.h> #define DOWNLOAD_URL @"http://bibdesk.sourceforge.net/" @@ -114,6 +115,12 @@ return sharedInstance; } +static NSString *hostInfoString() +{ + struct utsname name; + return uname(&name) ? @"Unknown" : [NSString stringWithFormat:@"%s running on %s", name.version, name.machine]; +} + - (void)reportError:(id)sender { @try { NSString *shortVersion = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"]; @@ -122,7 +129,10 @@ // see BibDesk_vers.c in the {intermediate products}/DerivedSources directory, generated by agvtool extern const unsigned char BibDeskVersionString[]; NSString *build = [NSString stringWithUTF8String:(const char *)BibDeskVersionString]; - NSString *body = [NSString stringWithFormat:@"%@\n\n\t ***** ERROR LOG ***** \n\nBibDesk Version:\n%@ (%@)\nBuild details: %@\n\n***** Do not modify below this line *****\n%@", NSLocalizedString(@"Please tell us what you were doing at the time this error occurred.", @"Message when error occurs"), shortVersion, version, build, [textView string]]; + NSMutableString *body = [NSMutableString stringWithString:NSLocalizedString(@"Please tell us what you were doing at the time this error occurred.", @"Message when error occurs")]; + [body appendString:@"\n\n***** Do not modify below this line *****\n"]; + [body appendFormat:@"\t ***** ERROR LOG ***** \n\nBibDesk version: %@ (%@)\n", shortVersion, version]; + [body appendFormat:@"Build details: %@\nHost: %@\n%@", build, hostInfoString(), [textView string]]; OAInternetConfig *ic = [OAInternetConfig internetConfig]; [ic launchMailTo:@"bib...@li..." This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |