合并develop

pull/99/head
xyb 2018-08-23 16:48:26 +08:00
commit 646b22c717
6 changed files with 28 additions and 28 deletions

View File

@ -120,7 +120,7 @@ func (c *Client) DelLock(key string) error {
}
func IsValidAsKeyPath(s string) bool {
return strings.IndexByte(s, '/') == -1
return strings.IndexAny(s, "/\\") == -1
}
// etcdTimeoutContext return better error info

View File

@ -11,7 +11,7 @@ import (
client "github.com/coreos/etcd/clientv3"
"github.com/fsnotify/fsnotify"
"github.com/go-gomail/gomail"
"github.com/satori/go.uuid"
"github.com/gofrs/uuid"
"github.com/shunfei/cronsun/db"
"github.com/shunfei/cronsun/event"

View File

@ -8,8 +8,8 @@ var (
ErrEmptyJobName = errors.New("Name of job is empty.")
ErrEmptyJobCommand = errors.New("Command of job is empty.")
ErrIllegalJobId = errors.New("Invalid id that includes illegal characters such as '/'.")
ErrIllegalJobGroupName = errors.New("Invalid job group name that includes illegal characters such as '/'.")
ErrIllegalJobId = errors.New("Invalid id that includes illegal characters such as '/' '\\'.")
ErrIllegalJobGroupName = errors.New("Invalid job group name that includes illegal characters such as '/' '\\'.")
ErrEmptyNodeGroupName = errors.New("Name of node group is empty.")
ErrIllegalNodeGroupId = errors.New("Invalid node group id that includes illegal characters such as '/'.")

File diff suppressed because one or more lines are too long

View File

@ -61,7 +61,7 @@
<div id="app">
<div id="initloader"></div>
</div>
<script src="build.js?v=9bb382d"></script>
<script src="build.js?v=ed6e655"></script>
</body>
</html>

View File

@ -211,7 +211,7 @@ export default {
}
}
}).
onfailed((msg)=> vm.$bus.$emit('error', data)).
onfailed((msg)=> vm.$bus.$emit('error', msg)).
do();
}