Skip to content

Commit d1a1a1c

Browse files
committed
Slightly improved messages during lib discovery
1 parent 341b441 commit d1a1a1c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: constants/constants.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ const MSG_BOOTLOADER_FILE_MISSING = "Bootloader file specified but missing: {0}"
161161
const MSG_BUILD_OPTIONS_CHANGED = "Build options changed, rebuilding all"
162162
const MSG_CANT_FIND_SKETCH_IN_PATH = "Unable to find {0} in {1}"
163163
const MSG_FQBN_INVALID = "{0} is not a valid fully qualified board name. Required format is targetPackageName:targetPlatformName:targetBoardName."
164-
const MSG_FIND_INCLUDES_FAILED = "Failed to find includes in file {1}"
164+
const MSG_FIND_INCLUDES_FAILED = "Error while detecting libraries included by {0}"
165165
const MSG_INVALID_QUOTING = "Invalid quoting: no closing [{0}] char found."
166166
const MSG_IGNORED_BUILTIN_TOOLS_TXT = "Skipping {0}; please consider removing that file since it may hurt older Arduino installations"
167167
const MSG_LIB_LEGACY = "(legacy)"

Diff for: container_find_includes.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ func findIncludesUntilDone(ctx *types.Context, cache *includeCache, sourceFile t
343343
return i18n.WrapError(preproc_err)
344344
} else {
345345
include = IncludesFinderWithRegExp(ctx, string(preproc_stderr))
346-
if include == "" {
346+
if include == "" && ctx.Verbose {
347347
ctx.GetLogger().Println(constants.LOG_LEVEL_DEBUG, constants.MSG_FIND_INCLUDES_FAILED, sourcePath)
348348
}
349349
}

0 commit comments

Comments
 (0)