Skip to content

Commit 0d75a09

Browse files
committed
Use different exception for better output
1 parent 221e50e commit 0d75a09

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ModuleConfig.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ component {
77
"globalEnvFile" = "~/.box.env",
88
"printOnLoad" = false,
99
"verbose" = false,
10-
"checkEnvPreServerStart": true
10+
"checkEnvPreServerStart" = true
1111
};
1212

1313
interceptors = [

interceptors/LoadEnvPreServers.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ component {
1818
var missingKeys = envFileService.diff( envExampleStruct, envStruct );
1919
if ( !missingKeys.isEmpty() ) {
2020
throw(
21-
type = "InvalidEnvCheck",
21+
type = "commandException",
2222
message = "The [#moduleSettings.fileName#] file is missing keys from the #moduleSettings.exampleFileName#. You can populate your #moduleSettings.fileName# with the new settings using `dotenv populate --new`",
2323
detail = "Missing keys: [ #missingKeys.toList( ", " )# ]"
2424
)

0 commit comments

Comments
 (0)