Skip to content

Commit 0756402

Browse files
committed
error message
1 parent 10aab46 commit 0756402

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

onlinejudge_verify/languages/csharp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ def _check_dotnet_version() -> None:
2727
res = subprocess.check_output(command).decode().strip()
2828
logger.info('dotnet version: %s', res)
2929
if distutils.version.LooseVersion(res) <= distutils.version.LooseVersion("6"):
30-
raise RuntimeError("needs .NET 6 or newer SDK")
30+
raise RuntimeError("oj-verify needs .NET 6 SDK or newer")
3131

3232

3333
@functools.lru_cache(maxsize=1)
3434
def _check_expander_console() -> None:
3535
if not shutil.which('dotnet-source-expand'):
3636
raise RuntimeError(
37-
'`dotnet-source-expand` not in $PATH. You needs SourceExpander.Console. `dotnet tool install -g SourceExpander.Console`')
37+
'`dotnet-source-expand` not in $PATH. Run `dotnet tool install -g SourceExpander.Console`')
3838
command = ['dotnet-source-expand', 'version']
3939
logger.info('$ %s', ' '.join(command))
4040
res = subprocess.check_output(command).decode().strip()

0 commit comments

Comments
 (0)