tlaplus/tlaplus

Make TLC's missing config file error message clearer and more concise

已關閉

#1,234 建立於 2025年8月22日

 (3 則留言) (1 個反應) (0 位負責人)Java (179 個分叉)batch import
Toolsenhancementgood first issuehelp wanted

倉庫指標

星標
 (2,153 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

When TLC is run without a configuration file, it prints the following error:

Error: TLC threw an unexpected exception.
This was probably caused by an error in the spec or model.
See the User Output or TLC Console for clues to what happened.
The exception was a tlc2.tool.ConfigFileException
: TLC encountered the following error when trying to read the configuration file DieHard.cfg:
File not found.

This message is overly verbose and misleading:

  • It suggests there was an "unexpected exception," when in fact the issue is simply that the config file is missing.
  • The text implies a problem with the spec or model, which isn’t accurate in this case.

貢獻者指南