Fixing build and exception's message