Skip to content

Commit

Permalink
Throw a better error message here
Browse files Browse the repository at this point in the history
  • Loading branch information
kumar303 committed May 12, 2017
1 parent 99be0a7 commit c52d771
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ const validAppNames = [

// Throw if the appName supplied is not valid.
if (appName && !validAppNames.includes(appName)) {
throw new Error(`App ${appName} is not enabled`);
throw new Error(
`App "${appName}" is not enabled; valid app names: ${validAppNames}`);
}


Expand Down

0 comments on commit c52d771

Please sign in to comment.