1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 10:50:24 -04:00

Include only the base name of the program in error messages

This commit is contained in:
Eelco Dolstra 2020-06-15 18:20:05 +02:00
parent 8b099812ea
commit 24a3208247

View file

@ -290,7 +290,7 @@ int handleExceptions(const string & programName, std::function<void()> fun)
{
ReceiveInterrupts receiveInterrupts; // FIXME: need better place for this
ErrorInfo::programName = programName;
ErrorInfo::programName = baseNameOf(programName);
string error = ANSI_RED "error:" ANSI_NORMAL " ";
try {