Skip to content

Commit 33040fb

Browse files
author
Matthias Kastner
committed
use error constant
1 parent cdb5fd3 commit 33040fb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

procedures/CodeBrowser_gui.ipf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ static StrConstant userDataNiceList = "niceList"
2929
static StrConstant oneTimeInitUserData = "oneTimeInit"
3030

3131
static StrConstant selectAll = "<ALL>"
32+
static StrConstant genericError = "_error_"
3233

3334
Function/S GetPanel()
3435
return panel
@@ -253,7 +254,7 @@ Function/S getCurrentItem([module, procedure, index])
253254

254255
// only one optional argument allowed
255256
if(module + procedure + index != 1)
256-
return "_error_"
257+
return genericError
257258
endif
258259

259260
if(module)
@@ -278,14 +279,14 @@ Function/S getCurrentItem([module, procedure, index])
278279
// fall back to first item
279280
return StringFromList(0, rawList)
280281
endif
281-
return "_error_"
282+
return genericError
282283
endif
283284

284285
procName = StringFromList(V_Value, rawList)
285286
return procName
286287
endif
287288

288-
return "_error_"
289+
return genericError
289290
End
290291

291292
/// Get the basic procedure name from a full procedure name

0 commit comments

Comments
 (0)