Changes between Initial Version and Version 1 of Ticket #18379, comment 7


Ignore:
Timestamp:
Nov 20, 2014, 9:42:27 PM (5 years ago)
Author:
Adam Peller
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18379, comment 7

    initial v1  
    11no, the specified behavior is to throw an exception.  you could do something like
    22
    3 ```
     3{{{
    44if (has('config-isDebug') && value === undefined) {
    55        console.warn(className + ' template couldn\'t find: ' + key);
    66        throw new Error(className + ' template couldn\'t find: ' + key);
    77}
    8 ```
     8}}}
    99
    1010or even just
    1111
    12 ```
     12{{{
    1313if (has('config-isDebug') && value === undefined) {
    1414        throw new Error(className + ' template couldn\'t find: ' + key);
    1515}
    16 ```
     16}}}
    1717
    1818and wouldn't it belong outside the if (format) condition?