Browse Source

mergerfs_webui.cpp

Antonio SJ Musumeci 2 weeks ago
parent
commit
426339eab9
  1. 8
      src/mergerfs_webui.cpp

8
src/mergerfs_webui.cpp

@ -33,7 +33,13 @@ _generate_error(const fs::path &mount_,
switch(err_) switch(err_)
{ {
case -EROFS: case -EROFS:
case -EINVAL;
rv["msg"] = fmt::format("'{}' is read only.",key_);
break;
case -EINVAL:
rv["msg"] = fmt::format("value '{}' is invalid for '{}'",
val_,
key_);
break;
case -EACCES: case -EACCES:
rv["msg"] = fmt::format("mergerfs.webui (pid {}) is running as uid {}" rv["msg"] = fmt::format("mergerfs.webui (pid {}) is running as uid {}"
" which appears not to have access to modify the" " which appears not to have access to modify the"

Loading…
Cancel
Save