mirror of https://github.com/nocturn9x/nimd.git
Improved more error messages
This commit is contained in:
parent
afce3a6c6d
commit
6884791b2e
|
@ -5,6 +5,7 @@ WORKDIR /code
|
||||||
|
|
||||||
# Removes any already existing binary so that when compilation fails the container stops
|
# Removes any already existing binary so that when compilation fails the container stops
|
||||||
RUN rm -f /code/nimd
|
RUN rm -f /code/nimd
|
||||||
|
RUN rm -f /code/main
|
||||||
RUN nim -d:release --opt:size --passL:"-static" --gc:orc -d:useMalloc c -o:nimd src/main
|
RUN nim -d:release --opt:size --passL:"-static" --gc:orc -d:useMalloc c -o:nimd src/main
|
||||||
RUN cp /code/nimd /sbin/nimd
|
RUN cp /code/nimd /sbin/nimd
|
||||||
|
|
||||||
|
|
|
@ -96,7 +96,7 @@ proc mountVirtualDisks*(logger: Logger) =
|
||||||
## such as /proc and /sys
|
## such as /proc and /sys
|
||||||
for entry in virtualFileSystems:
|
for entry in virtualFileSystems:
|
||||||
logger.debug(&"Mounting filesystem {entry.source} ({entry.filesystemtype}) at {entry.target} with mount option(s) {entry.data}")
|
logger.debug(&"Mounting filesystem {entry.source} ({entry.filesystemtype}) at {entry.target} with mount option(s) {entry.data}")
|
||||||
logger.trace(&"Calling mount({entry.source}, {entry.target}, {entry.filesystemtype}, {entry.mountflags}, '{entry.data}')")
|
logger.trace(&"Calling mount('{entry.source}', '{entry.target}', '{entry.filesystemtype}', {entry.mountflags}, '{entry.data}')")
|
||||||
var retcode = mount(entry.source, entry.target, entry.filesystemtype, entry.mountflags, entry.data)
|
var retcode = mount(entry.source, entry.target, entry.filesystemtype, entry.mountflags, entry.data)
|
||||||
logger.trace(&"mount('{entry.source}', '{entry.target}', '{entry.filesystemtype}', {entry.mountflags}, '{entry.data}') returned {retcode}")
|
logger.trace(&"mount('{entry.source}', '{entry.target}', '{entry.filesystemtype}', {entry.mountflags}, '{entry.data}') returned {retcode}")
|
||||||
if retcode == -1:
|
if retcode == -1:
|
||||||
|
|
Loading…
Reference in New Issue