Skip to content

Commit a582f17

Browse files
committed
Fix error message
1 parent a4af7d4 commit a582f17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nix/nario.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ struct CmdNarioExport : StorePathsCommand
6161
{
6262
auto fd = getStandardOutput();
6363
if (isatty(fd))
64-
throw UsageError("refusing to write nario to standard output");
64+
throw UsageError("refusing to write nario to a terminal");
6565
FdSink sink(std::move(fd));
6666
exportPaths(*store, StorePathSet(storePaths.begin(), storePaths.end()), sink, version);
6767
}
@@ -73,7 +73,7 @@ static FdSource getNarioSource()
7373
{
7474
auto fd = getStandardInput();
7575
if (isatty(fd))
76-
throw UsageError("refusing to read nario from standard input");
76+
throw UsageError("refusing to read nario from a terminal");
7777
return FdSource(std::move(fd));
7878
}
7979

0 commit comments

Comments
 (0)