Sep 25, 2014; 10:36
Marc Pinnell
Re: L9: File Listing - Error messages
So this continues to bug me - the error message portion (well both parts actually). Could my confusion on the error messages be caused by my use of "clean URLs"?
I tried to run this code (note var name in the IF statement) inside of a page I know works ("fixing" the var name produces the correct output):
var('test' = TRUE)
if($testxxx) => {^
date
^}
and I get an error stack that starts out:
An unhandled failure during a web request
Error Code: 404
Error Msg: The file "/test" was not found
Error Stack:
538:3 web_response.lasso
517:3 web_response.lasso
Beginning to think I need to totally reboot my thought process with L9.
Marc
On Sep 25, 2014, at 9:19 AM, Marc Pinnell <lassolist@1027consulting.com> wrote:
> Maybe that is what has me confused then. I assume it is saying that in this line:
>
> while(!#1->first -> beginswith('.') or #exception_list !>> #1->first) => {^
>
> that #1 is a directory, but in the next line it proves it is not:
>
> local('fmod' = file('/_images/_forms/' + #1->first)->modificationTime)
>
> even if it was directory, shouldn't the code still work?
>
> marc
>
>
> On Sep 25, 2014, at 6:47 AM, Brad Lindsay <brad@monkware.com> wrote:
>
>>
>> On 9/24/14, 11:24 PM, Marc Pinnell wrote:
>>> I can fix the logic, but why does it throw a Code 21 error?
>>>
>>> An unhandled failure during a web request
>>> Error Code: 21
>>> Error Msg: Is a directory
>>> Error Stack:
>>> 169:20 file.lasso
>>> 527:26 web_response.lasso
>>> 128:47 file.lasso
>>> 128:28 file.lasso
>>> ...
>>>
>>> For that fact, what is a 21? I miss the old error page sometimes! :)
>>
>> Right under the error code is the error message which tells you what the error is - the error is that something is a directory, not a file.
>>
>> Brad
>>
>> #############################################################
>> Attend the Lasso Developer Conference 2014!
>> October 1-3, 2014 at Treefrog HQ, Newmarket, Ontario, Canada
>> http://www.lassosoft.com/LDC-newmarket-2014
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso Lasso@lists.lassosoft.com
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
>> Send administrative queries to <Lasso-request@lists.lassosoft.com>
>
> Marc Pinnell
> 1027 Design
> PO Box 990872
> Redding, CA 96099-0872
> 530.941.4706
> fax: 866.232.5300
> www.1027Design.com
>
>
> #############################################################
> Attend the Lasso Developer Conference 2014!
> October 1-3, 2014 at Treefrog HQ, Newmarket, Ontario, Canada
> http://www.lassosoft.com/LDC-newmarket-2014
>
> #############################################################
>
> This message is sent to you because you are subscribed to
> the mailing list Lasso Lasso@lists.lassosoft.com
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
> Send administrative queries to <Lasso-request@lists.lassosoft.com>
Marc Pinnell
1027 Design
PO Box 990872
Redding, CA 96099-0872
530.941.4706
fax: 866.232.5300
www.1027Design.com
#############################################################
Attend the Lasso Developer Conference 2014!
October 1-3, 2014 at Treefrog HQ, Newmarket, Ontario, Canada
http://www.lassosoft.com/LDC-newmarket-2014
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Sep 25, 2014; 14:21
Steve Piercy - Website Builder
Re: L9: File Listing - Error messages