Skip to content

Commit aa0cc55

Browse files
committed
Improve messages in run-nd.sh script
1 parent d3f9eee commit aa0cc55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Docker/run-nd.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [ ! -d "/data" ]; then
88
fi
99

1010
if [[ -z "${NetDaemon__ApplicationAssembly}" ]]; then
11-
echo -e "\\033[32mStarting NetDaemon V5 runtime ...\\033[0m" >&2
11+
echo -e "\\033[32mEnvironment variable 'NetDaemon__ApplicationAssembly' has not been set. Starting pre-built NetDaemon runtime instead...\\033[0m" >&2
1212
cd "${daemondir}" || exit 1
1313
exec dotnet NetDaemon.Host.Default.dll
1414
else
@@ -18,7 +18,7 @@ else
1818
fi
1919

2020
if [[ "${NetDaemon__ApplicationAssembly}" != *".dll" ]]; then
21-
echo -e "\\033[31mAssembly needs to point to a .dll file!\\033[0m" >&2
21+
echo -e "\\033[31mEnvironment variable 'NetDaemon__ApplicationAssembly' needs to reference a .dll file!\\033[0m" >&2
2222
exit 1
2323
fi
2424

@@ -30,7 +30,7 @@ else
3030

3131
# The provided application source is ether a project or pre-compiled .Net application
3232
if [[ ! -f "${NetDaemon__ApplicationAssembly}" ]]; then
33-
echo -e "\\033[31mThe assembly ${NetDaemon__ApplicationAssembly} cannot be found. Please check the settings.\\033[0m" >&2
33+
echo -e "\\033[31mThe assembly ${NetDaemon__ApplicationAssembly} cannot be found. Please check the 'NetDaemon__ApplicationAssembly' environment variable, it should reference your published NetDaemon application assembly.\\033[0m" >&2
3434
exit 1
3535
fi
3636

0 commit comments

Comments
 (0)