make changeDetectedViaJsonBuildInstructions warning less verbose when json file invalid (eg due to spec change) (#18197)
This commit is contained in:
parent
b9843b156d
commit
9106ab7db1
1 changed files with 1 additions and 1 deletions
|
|
@ -993,7 +993,7 @@ proc changeDetectedViaJsonBuildInstructions*(conf: ConfigRef; jsonFile: Absolute
|
||||||
var bcache: BuildCache
|
var bcache: BuildCache
|
||||||
try: bcache.fromJson(jsonFile.string.parseFile)
|
try: bcache.fromJson(jsonFile.string.parseFile)
|
||||||
except IOError, OSError, ValueError:
|
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
|
return true
|
||||||
if bcache.currentDir != getCurrentDir() or # fixes bug #16271
|
if bcache.currentDir != getCurrentDir() or # fixes bug #16271
|
||||||
bcache.configFiles != conf.configFiles.mapIt(it.string) or
|
bcache.configFiles != conf.configFiles.mapIt(it.string) or
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue