Catch should work if you throw the error message e.g. throw error('Error message'); But, if you use error method without throw, it won't work like e.g. error('Error message');
↧