Throw error on array passed to command callback.