diff --git a/src/ObjMatrix.h b/src/ObjMatrix.h index 9208e9a..5af5dfb 100644 --- a/src/ObjMatrix.h +++ b/src/ObjMatrix.h @@ -22,3 +22,5 @@ #import "MTXClient.h" #import "MTXRequest.h" + +#import "MTXLoginFailedException.h" diff --git a/tests/Makefile b/tests/Makefile index 5e991d3..16a1342 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -40,6 +40,6 @@ run: ${PROG_NOINST}: ${LIBOBJMATRIX_DEP} -CPPFLAGS += -I../src +CPPFLAGS += -I../src -I../src/exceptions LIBS := -L../src -lobjmatrix ${LIBS} LD = ${OBJC} diff --git a/tests/tests.m b/tests/tests.m index fcf7f89..a9d8110 100644 --- a/tests/tests.m +++ b/tests/tests.m @@ -22,7 +22,7 @@ #import -#import "MTXClient.h" +#import "ObjMatrix.h" @interface Tests: OFObject @end @@ -50,6 +50,10 @@ OF_APPLICATION_DELEGATE(Tests) 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]; }