mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-19 22:46:34 -05:00
restructure error calculation
This commit is contained in:
parent
078e4bab49
commit
726b88e039
14 changed files with 31 additions and 28 deletions
|
|
@ -59,7 +59,7 @@ _link_create_path_core(const string &oldbasepath,
|
|||
|
||||
rv = fs::link(oldfullpath,newfullpath);
|
||||
|
||||
return calc_error(rv,error,errno);
|
||||
return error::calc(rv,error,errno);
|
||||
}
|
||||
|
||||
static
|
||||
|
|
@ -176,7 +176,7 @@ _link_preserve_path_core(Policy::Func::Search searchFunc,
|
|||
rv = fs::link(oldfullpath,newfullpath);
|
||||
}
|
||||
|
||||
return calc_error(rv,error,errno);
|
||||
return error::calc(rv,error,errno);
|
||||
}
|
||||
|
||||
static
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue