Added custom field "level" to error obj