-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherrors.go
21 lines (18 loc) · 1019 Bytes
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package spaserve
import "errors"
// injectWebEnv.InjectWindowVars
var ErrCouldNotMarshalConfig = errors.New("could not marshal config")
var ErrNoIndexFound = errors.New("no index.html found")
var ErrUnexpectedWalkError = errors.New("unexpected walk error")
var ErrCouldNotOpenFile = errors.New("could not open file")
var ErrCouldNotReadFile = errors.New("could not read file")
var ErrCouldNotAppendToIndex = errors.New("could not append to index")
var ErrCouldNotMakeDir = errors.New("could not make dir")
var ErrCouldNotWriteFile = errors.New("could not write file")
var ErrCouldNotParseNamespace = errors.New("namespace must match regex: ^[a-zA-Z_][a-zA-Z0-9_]*$")
var ErrNoNamespace = errors.New("no namespace provided")
// injectWebEnv.appendToIndex
var ErrCouldNotParseIndex = errors.New("could not parse index")
var ErrCouldNotFindHead = errors.New("could not find <head> tag")
var ErrCouldNotAppendScript = errors.New("could not append script")
var ErrCouldNotWriteIndex = errors.New("could not write index")