From dc09d1b41f95f413a4dcb648478fdebf862c49ea Mon Sep 17 00:00:00 2001 From: James Lamb Date: Thu, 2 Sep 2021 18:34:30 +0100 Subject: [PATCH] [R-package] fix inaccurate error message in Dataset get_colnames() method (#4588) * [R-package] fix inaccurate log message in Dataset get_colnames() method * Update R-package/R/lgb.Dataset.R Co-authored-by: Nikita Titov Co-authored-by: Nikita Titov --- R-package/R/lgb.Dataset.R | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/R-package/R/lgb.Dataset.R b/R-package/R/lgb.Dataset.R index c4a9e5f70bbc..8badc3ee3e5c 100644 --- a/R-package/R/lgb.Dataset.R +++ b/R-package/R/lgb.Dataset.R @@ -410,10 +410,10 @@ Dataset <- R6::R6Class( } else { - # Trying to work with unknown dimensions is not possible + # Trying to work with unknown formats is not possible stop( - "dim: cannot get dimensions before dataset has been constructed, please call " - , "lgb.Dataset.construct explicitly" + "Dataset$get_colnames(): cannot get column names before dataset has been constructed, please call " + , "lgb.Dataset.construct() explicitly" ) }