Stores error text in separate variable