Skip to content

Commit 9f24258

Browse files
alexdebrilRO-29
authored andcommitted
Implement error throwing
1 parent 178e1a7 commit 9f24258

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mapping/mapping.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ package mapping
5353

5454
import (
5555
"encoding/json"
56+
"fmt"
5657
"io"
5758
"os"
5859
"path/filepath"
@@ -97,7 +98,7 @@ func LoadMappingVersion(c []byte, version string) (*Mapping, error) {
9798
}
9899
m, ok := mv[version]
99100
if !ok {
100-
101+
return nil, errors.New(fmt.Sprintf("no mapping found for version %s", version))
101102
}
102103
return m, nil
103104
}

0 commit comments

Comments
 (0)