In MediaController, change to return error array directly to avoid array conversion to string error