mirror of
https://github.com/usebruno/bruno.git
synced 2025-06-24 05:51:22 +02:00
parent
f617504cd6
commit
500e3853a5
@ -58,7 +58,7 @@ class Bru {
|
|||||||
|
|
||||||
setVar(key, value) {
|
setVar(key, value) {
|
||||||
if (!key) {
|
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) {
|
if (envVariableNameRegex.test(key) === false) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user