diff options
author | Ben Burdette <bburdette@gmail.com> | 2020-05-01 14:32:06 -0600 |
---|---|---|
committer | Ben Burdette <bburdette@gmail.com> | 2020-05-01 14:32:06 -0600 |
commit | 4b99c09f5ccd385d2bf0c82a8c9a4ae1658abbe8 (patch) | |
tree | 44b6f9543e794ecaf3fd5b491c53dbbe9e0a4e58 /src/libstore/builtins/buildenv.cc | |
parent | a3030e3c3186f980716c475155c387bf18041a3f (diff) |
convert some errors
Diffstat (limited to 'src/libstore/builtins/buildenv.cc')
-rw-r--r-- | src/libstore/builtins/buildenv.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/libstore/builtins/buildenv.cc b/src/libstore/builtins/buildenv.cc index 000769094..64085fcc9 100644 --- a/src/libstore/builtins/buildenv.cc +++ b/src/libstore/builtins/buildenv.cc @@ -22,7 +22,11 @@ static void createLinks(State & state, const Path & srcDir, const Path & dstDir, srcFiles = readDirectory(srcDir); } catch (SysError & e) { if (e.errNo == ENOTDIR) { - printError("warning: not including '%s' in the user environment because it's not a directory", srcDir); + logWarning( + ErrorInfo { + .name = "Create Links - Directory", + .hint = hintfmt("not including '%s' in the user environment because it's not a directory", srcDir) + }); return; } throw; @@ -41,7 +45,11 @@ static void createLinks(State & state, const Path & srcDir, const Path & dstDir, throw SysError("getting status of '%1%'", srcFile); } catch (SysError & e) { if (e.errNo == ENOENT || e.errNo == ENOTDIR) { - printError("warning: skipping dangling symlink '%s'", dstFile); + logWarning( + ErrorInfo { + .name = "Create Links - Skipping Symlink", + .hint = hintfmt("skipping dangling symlink '%s'", dstFile) + }); continue; } throw; |