Fix 500 error in admin panel casued by incorrect function name.

Should have been getErrorMsg not setErrorMsg