Revision 33bf3856 pithos-macos/PithosSubdirNode.m
b/pithos-macos/PithosSubdirNode.m | ||
---|---|---|
41 | 41 |
#import "ASIPithosContainer.h" |
42 | 42 |
#import "ASIPithosObject.h" |
43 | 43 |
#import "ASIDownloadCache.h" |
44 |
#import "PithosFileUtilities.h" |
|
44 | 45 |
|
45 | 46 |
static NSImage *sharedIcon = nil; |
46 | 47 |
|
... | ... | |
146 | 147 |
[alert runModal]; |
147 | 148 |
return; |
148 | 149 |
} else if (request.responseStatusCode != 204) { |
149 |
alert = [[[NSAlert alloc] init] autorelease]; |
|
150 |
[alert setMessageText:@"Unexpected Response Status"]; |
|
151 |
[alert setInformativeText:[NSString stringWithFormat:@"Unexpected response status %d - %@", request.responseStatusCode, request.responseStatusMessage]]; |
|
152 |
[alert addButtonWithTitle:@"OK"]; |
|
153 |
[alert runModal]; |
|
150 |
[PithosFileUtilities unexpectedResponseStatusAlertWithRequest:request]; |
|
154 | 151 |
return; |
155 | 152 |
} |
156 | 153 |
refreshParent = YES; |
... | ... | |
161 | 158 |
} else if (request.responseStatusCode == 404) { |
162 | 159 |
createObject = YES; |
163 | 160 |
} else { |
164 |
alert = [[[NSAlert alloc] init] autorelease]; |
|
165 |
[alert setMessageText:@"Unexpected Response Status"]; |
|
166 |
[alert setInformativeText:[NSString stringWithFormat:@"Unexpected response status %d - %@", request.responseStatusCode, request.responseStatusMessage]]; |
|
167 |
[alert addButtonWithTitle:@"OK"]; |
|
168 |
[alert runModal]; |
|
161 |
[PithosFileUtilities unexpectedResponseStatusAlertWithRequest:request]; |
|
169 | 162 |
return; |
170 | 163 |
} |
171 | 164 |
if (createObject) { |
Also available in: Unified diff