removing dependency on angular minError