Skip to content

Commit

Permalink
Removed handling of custom error strings since it's not working
Browse files Browse the repository at this point in the history
  • Loading branch information
johansolve committed Jul 5, 2016
1 parent dddcdd2 commit 63b9b0d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions knop9/knoplibs/knop_base.lasso
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ define knop_base => type {
/*
CHANGE NOTES
2016-07-06 JS Removed handling of custom error strings since it's not working
2016-06-08 JS Removed tagtime
2013-01-31 JC Major code cleanup of minor details.
Removed all semicolons
Expand Down Expand Up @@ -48,7 +49,7 @@ define knop_base => type {
*/
data public version = '2016-06-08'
data public version = '2016-07-06'
data public debug_trace::array = array
data public _debug_trace::array = array
data public instance_unique = null
Expand Down Expand Up @@ -163,7 +164,7 @@ define knop_base => type {
Returns a reference to the language object used for error codes, to be able to add localized error messages to any Knop type (except knop_lang and knop_base)
*/
public error_lang() => {
return 'error_lang'
return .'error_lang'
}
/**!
Expand Down Expand Up @@ -220,7 +221,7 @@ define knop_base => type {
))
#error_lang -> addlanguage(-language = 'en', -strings = #errorcodes)
// add any custom error strings
with custom_language in #error_lang_custom -> 'strings' do {
/*with custom_language in #error_lang_custom -> 'strings' do {
if(#error_lang -> 'strings' !>> #custom_language -> name) => {
// add entire language at once
#error_lang -> addlanguage(-language = #custom_language -> name, -strings = #custom_language -> value)
Expand All @@ -232,7 +233,7 @@ define knop_base => type {
-value = #custom_string -> value)
}
}
}
}*/
if(#errorcodes >> #error_code) => {
// return error message defined by this tag
Expand Down

0 comments on commit 63b9b0d

Please sign in to comment.