Skip to content

Commit 93a7075

Browse files
author
Federico Fissore
committed
Created costant for message MSG_SKETCH_CANT_BE_IN_BUILDPATH
Signed-off-by: Federico Fissore <[email protected]>
1 parent 2870c92 commit 93a7075

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/arduino.cc/builder/constants/constants.go

+1
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ const MSG_PROP_IN_LIBRARY = "Missing '{0}' from library in {1}"
194194
const MSG_RUNNING_COMMAND = "Running: {0}"
195195
const MSG_RUNNING_RECIPE = "Running recipe: {0}"
196196
const MSG_SETTING_BUILD_PATH = "Setting build path to {0}"
197+
const MSG_SKETCH_CANT_BE_IN_BUILDPATH = "Sketch cannot be located in build path. Please specify a different build path"
197198
const MSG_UNHANDlED_TYPE_IN_CONTEXT = "Unhandled type {0} in context {1} key"
198199
const MSG_UNKNOWN_SKETCH_EXT = "Unknown sketch file extension: {0}"
199200
const MSG_USING_LIBRARY_AT_VERSION = "Using library {0} at version {1} in folder: {2} {3}"

src/arduino.cc/builder/fail_if_buildpath_equals_sketchpath.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func (s *FailIfBuildpathEqualsSketchPath) Run(context map[string]interface{}) er
5454
sketchPath = filepath.Dir(sketchPath)
5555

5656
if buildPath == sketchPath {
57-
return utils.Errorf(context, "Sketch cannot be located in build path. Please specify a different build path")
57+
return utils.Errorf(context, constants.MSG_SKETCH_CANT_BE_IN_BUILDPATH)
5858
}
5959

6060
return nil

0 commit comments

Comments
 (0)