Skip to content

Commit

Permalink
[R-package] fix inaccurate error message in Dataset get_colnames() me…
Browse files Browse the repository at this point in the history
…thod (#4588)

* [R-package] fix inaccurate log message in Dataset get_colnames() method

* Update R-package/R/lgb.Dataset.R

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
  • Loading branch information
jameslamb and StrikerRUS authored Sep 2, 2021
1 parent e0d93b5 commit dc09d1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R-package/R/lgb.Dataset.R
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

}
Expand Down

0 comments on commit dc09d1b

Please sign in to comment.