diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-06-06 00:53:22 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-06 09:53:22 +0200 |
commit | 9106ab7db19e22782c544c6362741dff4142820e (patch) | |
tree | 546eb4156a97c942f1d2f35812294d66fec49c24 | |
parent | b9843b156dfc16f1f99cbee8fc8e55b7abd6c21b (diff) | |
download | Nim-9106ab7db19e22782c544c6362741dff4142820e.tar.gz |
make changeDetectedViaJsonBuildInstructions warning less verbose when json file invalid (eg due to spec change) (#18197)
-rw-r--r-- | compiler/extccomp.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim index ea2b09866..831acae68 100644 --- a/compiler/extccomp.nim +++ b/compiler/extccomp.nim @@ -993,7 +993,7 @@ proc changeDetectedViaJsonBuildInstructions*(conf: ConfigRef; jsonFile: Absolute var bcache: BuildCache try: bcache.fromJson(jsonFile.string.parseFile) except IOError, OSError, ValueError: - stderr.write "Warning: JSON processing failed for $#: $#\n" % [jsonFile.string, getCurrentExceptionMsg()] + stderr.write "Warning: JSON processing failed for: $#\n" % jsonFile.string return true if bcache.currentDir != getCurrentDir() or # fixes bug #16271 bcache.configFiles != conf.configFiles.mapIt(it.string) or |