diff --git a/CHANGE.txt b/CHANGE.txt index 4969e45..11c2ccc 100644 --- a/CHANGE.txt +++ b/CHANGE.txt @@ -1,4 +1,9 @@ 更新履歴 +TAG019 2020/05/04 6th + Compiler + ・includeタグでファイルが読めなかったときコンパイルがエラーで終了するように挙動を修正 + ・英文メッセージ追加(くろまさんいつもありがとうございます) + TAG019 2020/05/04 5th Compiler ・数値指定マクロも文字指定マクロも同じバッファを使用してしまっていたバグを修正 diff --git a/PMDDotNETCompiler/compiler.cs b/PMDDotNETCompiler/compiler.cs index c80c631..6f0c968 100644 --- a/PMDDotNETCompiler/compiler.cs +++ b/PMDDotNETCompiler/compiler.cs @@ -239,7 +239,8 @@ internal string ReadFileText(string mml_filename2) if (strm == null) { Log.WriteLine(LogLevel.ERROR, string.Format(msg.get("E0201"), mml_filename2)); - return ""; + throw new FileNotFoundException(mml_filename2); + //return ""; } string text; using (StreamReader sr = new StreamReader(strm, Encoding.GetEncoding("Shift_JIS"))) diff --git a/PMDDotNETConsole/Properties/launchSettings.json b/PMDDotNETConsole/Properties/launchSettings.json index efe64eb..1204528 100644 --- a/PMDDotNETConsole/Properties/launchSettings.json +++ b/PMDDotNETConsole/Properties/launchSettings.json @@ -2,7 +2,7 @@ "profiles": { "PMDDotNETConsole": { "commandName": "Project", - "commandLineArgs": "/v C:\\Users\\kuma\\Desktop\\pmd\\GSKID05.mml" + "commandLineArgs": "/v C:\\Users\\kuma\\Desktop\\pmd\\AIR_T06.mml" } } } \ No newline at end of file diff --git a/README.md b/README.md index 2c220fd..438ddd3 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ PMD.NET ・mucom さん ・ぼうきち さん ・M.S さん + ・くろま さん ・PMD / MC ・Visual Studio Community 2019