mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-14 01:35:34 -04:00
fix stuttering StoreValueUnsetError
This commit is contained in:
parent
5660f813f0
commit
b1818ba089
5 changed files with 9 additions and 9 deletions
|
@ -30,7 +30,7 @@ func (s *StdStore) Get(request string) ([]byte, error) {
|
|||
if ok {
|
||||
return []byte(value), nil
|
||||
}
|
||||
return nil, &StoreValueUnsetError{requestedValue: request}
|
||||
return nil, &ValueUnsetError{requestedValue: request}
|
||||
}
|
||||
|
||||
// Put saves a value in StdStore by Type and Name.
|
||||
|
@ -119,7 +119,7 @@ func (t *stdTransaction) Get(request string) ([]byte, error) {
|
|||
if value, ok := t.data[request]; ok {
|
||||
return []byte(value), nil
|
||||
}
|
||||
return nil, &StoreValueUnsetError{requestedValue: request}
|
||||
return nil, &ValueUnsetError{requestedValue: request}
|
||||
}
|
||||
|
||||
// Put saves a value.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue