Skip to content

Commit 259bc32

Browse files
committed
Improve getPackage error message
1 parent 9dfa884 commit 259bc32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/scaffold_utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ renderFile <- function(outputFile, templateFile, description = '', substitutions
4848

4949
getPackage <- function() {
5050
if (!file.exists('DESCRIPTION')) {
51-
stop("You need to create a package to house your widget first!", call. = FALSE)
51+
stop("The current directory doesn't contain a package. You're either in the wrong directory, or need to create a package to house your widget.", call. = FALSE)
5252
}
5353
read.dcf('DESCRIPTION')[[1,"Package"]]
5454
}

0 commit comments

Comments
 (0)