mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
adjust error message
This commit is contained in:
parent
4310e1fac4
commit
d1d1757520
|
@ -385,6 +385,9 @@ func extractBucketPath(bucketsDir, dir string) (util.FullPath, bool) {
|
||||||
func (option *RemoteGatewayOptions) collectRemoteStorageConf() (err error) {
|
func (option *RemoteGatewayOptions) collectRemoteStorageConf() (err error) {
|
||||||
|
|
||||||
if mappings, err := filer.ReadMountMappings(option.grpcDialOption, pb.ServerAddress(*option.filerAddress)); err != nil {
|
if mappings, err := filer.ReadMountMappings(option.grpcDialOption, pb.ServerAddress(*option.filerAddress)); err != nil {
|
||||||
|
if err == filer_pb.ErrNotFound {
|
||||||
|
return fmt.Errorf("remote storage is not configured in filer server")
|
||||||
|
}
|
||||||
return err
|
return err
|
||||||
} else {
|
} else {
|
||||||
option.mappings = mappings
|
option.mappings = mappings
|
||||||
|
|
Loading…
Reference in a new issue