@@ -20,11 +20,11 @@ * POSSIBILITY OF SUCH DAMAGE. */ #import -#import "MTXClient.h" +#import "ObjMatrix.h" @interface Tests: OFObject @end OF_APPLICATION_DELEGATE(Tests) @@ -48,13 +48,17 @@ homeserver: homeserver block: ^ (MTXClient *client, id exception) { if (exception != nil) { [of_stdout writeFormat: @"Error logging in: %@\n", exception]; + if ([exception isKindOfClass: + MTXLoginFailedException.class]) + [of_stdout writeFormat: @"Response: %@\n", + [exception response]]; [OFApplication terminateWithStatus: 1]; } [of_stdout writeFormat: @"Logged in client: %@\n", client]; [OFApplication terminate]; }]; } @end