Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Improve error message for undefined module exports #180

@klmr

Description

@klmr

Currently, when attempting to accessing a nonexistent or non-exported object bar in a module object foo, the resulting error message is

Error in get(as.character(substitute(e2)), envir = e1, inherits = FALSE) :
   object 'bar' not found

This error message does not make it clear where the error is coming from. It needs to be improved. Something like this:

Error in foo$bar :
  no object 'bar' exported from module 'foo'

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions