Throw the error instead of continue the program