Skip to content

Commit eb10ff4

Browse files
committed
update from review: improve user message
1 parent fc5abf6 commit eb10ff4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: legacy/builder/constants/constants.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ const MSG_CORE_CACHE_UNAVAILABLE = "Unable to cache built core, please tell {0}
8787
const MSG_BOARD_UNKNOWN = "Board {0} (platform {1}, package {2}) is unknown"
8888
const MSG_BOOTLOADER_FILE_MISSING = "Bootloader file specified but missing: {0}"
8989
const MSG_BUILD_OPTIONS_CHANGED = "Build options changed, rebuilding all"
90+
const MSG_BUILD_OPTIONS_INVALID = "{0} invalid, rebuilding all"
9091
const MSG_CANT_FIND_SKETCH_IN_PATH = "Unable to find {0} in {1}"
9192
const MSG_FQBN_INVALID = "{0} is not a valid fully qualified board name. Required format is targetPackageName:targetPlatformName:targetBoardName."
9293
const MSG_FIND_INCLUDES_FAILED = "Error while detecting libraries included by {0}"
@@ -124,7 +125,6 @@ const MSG_USING_CACHED_INCLUDES = "Using cached library dependencies for file: {
124125
const MSG_WARNING_LIB_INVALID_CATEGORY = "WARNING: Category '{0}' in library {1} is not valid. Setting to '{2}'"
125126
const MSG_WARNING_PLATFORM_OLD_VALUES = "Warning: platform.txt from core '{0}' contains deprecated {1}, automatically converted to {2}. Consider upgrading this core."
126127
const MSG_WARNING_SPURIOUS_FILE_IN_LIB = "WARNING: Spurious {0} folder in '{1}' library"
127-
const MSG_INVESTIGATE = " (unusual state to investigate)"
128128
const PACKAGE_NAME = "name"
129129
const PACKAGE_TOOLS = "tools"
130130
const PLATFORM_ARCHITECTURE = "architecture"

Diff for: legacy/builder/wipeout_build_path_if_build_options_changed.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (s *WipeoutBuildPathIfBuildOptionsChanged) Run(ctx *types.Context) error {
4545
json.Unmarshal([]byte(previousBuildOptionsJson), &prevOpts)
4646

4747
if prevOpts == nil {
48-
ctx.GetLogger().Println(constants.LOG_LEVEL_DEBUG, constants.MSG_BUILD_OPTIONS_CHANGED + constants.MSG_INVESTIGATE);
48+
ctx.GetLogger().Println(constants.LOG_LEVEL_DEBUG, constants.MSG_BUILD_OPTIONS_INVALID, constants.BUILD_OPTIONS_FILE)
4949
return doCleanup(ctx.BuildPath)
5050
}
5151

0 commit comments

Comments
 (0)