Adium

Changeset 23862

Show
Ignore:
Timestamp:
06/09/2008 01:40:48 AM (6 months ago)
Author:
applmak
Message:

When making a new chat, and we detect that an error has occurred...
Rather than simply setting the error message and continuing, we now return nil, which stops futher processing and tells the user of the error.
Fixes #8864.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Frameworks/Adium Framework/Source/AIAccount.m

    r23837 r23862  
    970970                [[NSScriptCommand currentCommand] setScriptErrorNumber:errOSACantAssign]; 
    971971                [[NSScriptCommand currentCommand] setScriptErrorString:@"Can't create a chat without specifying its containing window."]; 
     972                return nil; 
    972973        } 
    973974         
     
    977978                        [[NSScriptCommand currentCommand] setScriptErrorNumber:errOSACantAssign]; 
    978979                        [[NSScriptCommand currentCommand] setScriptErrorString:@"Can't find that contact!"]; 
     980                        return nil; 
    979981                } 
    980982                AIMessageWindowController *chatWindowController = nil; 
     
    995997                        [[NSScriptCommand currentCommand] setScriptErrorNumber:errOSACantAssign]; 
    996998                        [[NSScriptCommand currentCommand] setScriptErrorString:@"Can't create chat in that chat window."]; 
     999                        return nil; 
    9971000                } 
    9981001