Skip to content

Commit 5c2da06

Browse files
committed
Prettify task arguments on timeout
1 parent f5d7819 commit 5c2da06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Util/PBTask.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ - (BOOL)launchTask:(NSError **)error {
216216
if (error) {
217217
NSString *desc = @"Timeout while running task";
218218
NSArray *taskArguments = [@[self.task.launchPath] arrayByAddingObjectsFromArray:self.task.arguments];
219-
NSString *failureReason = [NSString stringWithFormat:@"The task \"%@\" failed to complete before its timeout", taskArguments];
219+
NSString *failureReason = [NSString stringWithFormat:@"The task \"%@\" failed to complete before its timeout", [taskArguments componentsJoinedByString:@" "]];
220220
NSDictionary *userInfo = @{
221221
NSLocalizedDescriptionKey: desc,
222222
NSLocalizedFailureReasonErrorKey: failureReason,

0 commit comments

Comments
 (0)