Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log error on AJAX call for non-found function GUID #1427

Closed
wants to merge 3 commits into from

Conversation

Shadowfiend
Copy link
Member

We add a LiftRules entry, handleUnmappedParameter, that is a FactoryMaker that
vends a function to handle any parmaeter not mapped to a Lift function. By
default, the function checks if the parameter name starts with F, and logs a
warning if so. This is to do a quick, high-speed check as to whether or not the
parameter looks like a Lift function binding.
@fmpwizard
Copy link
Member

👍

val callback = Box.legacyNullTest(nmessageCallback.get(parameterName))

if (callback.isEmpty)
LiftRules.handleUnmappedParameter.vend(state, parameterName)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird.

@farmdawgnation
Copy link
Member

👍

@fmpwizard
Copy link
Member

on master now

@fmpwizard
Copy link
Member

and now on lift 3.0 too

@fmpwizard fmpwizard closed this Sep 15, 2013
@fmpwizard fmpwizard deleted the log-unknown-guids branch September 15, 2013 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants