Skip to content

Commit e4a0c37

Browse files
author
Roger Peppe
committed
state: fix reversion
1 parent becad2c commit e4a0c37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

state/state.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ func (st *State) FindEntity(tag string) (Entity, error) {
489489
// Return an invalid entity error if the requested environment is not
490490
// the current one.
491491
if id != conf.Name() {
492-
return nil, fmt.Errorf("%q is not a valid environment tag", tag)
492+
return nil, errors.NotFoundf("environment %q", id)
493493
}
494494
return st.Environment()
495495
}

0 commit comments

Comments
 (0)