mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-24 05:05:39 +00:00
Merge pull request #963 from mikaoelitiana/962-empty-vars
Improve error message when an empty var is set
This commit is contained in:
@@ -58,7 +58,7 @@ class Bru {
|
||||
|
||||
setVar(key, value) {
|
||||
if (!key) {
|
||||
throw new Error('Key is required');
|
||||
throw new Error('A variable with an empty name has been created but name is required.');
|
||||
}
|
||||
|
||||
if (envVariableNameRegex.test(key) === false) {
|
||||
|
||||
Reference in New Issue
Block a user