Uh... I think I have a faulty love, or found a nasty glitch.

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
zac352
Party member
Posts: 496
Joined: Sat Aug 28, 2010 8:13 pm
Location: In your head.
Contact:

Uh... I think I have a faulty love, or found a nasty glitch.

Post by zac352 »

I have narrowed it down that:

Code: Select all

resp=love.thread.newThread(love.filesystem.read("responder.lua"))
causes:

Code: Select all

$ love irc_bot
terminate called after throwing an instance of 'love::Exception'
  what():  Could not open file 404. Does not exist.
Aborted
I can assure you that responder.lua exists:

Code: Select all

$ ls irc_bot
conf.lua  main.lua  responder.lua
And yes, I have tried

Code: Select all

resp=love.thread.newThread(love.filesystem.read("irc_bot/responder.lua"))
It just gives file not found errors.

Can anyone help? :(
Hello, I am not dead.
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

Re: Uh... I think I have a faulty love, or found a nasty gli

Post by TechnoCat »

Try this instead

Code: Select all

resp = love.thread.newThread("responder", "irc_bot/responder.lua")

Code: Select all

love.thread.newThread(name, file)
User avatar
zac352
Party member
Posts: 496
Joined: Sat Aug 28, 2010 8:13 pm
Location: In your head.
Contact:

Re: Uh... I think I have a faulty love, or found a nasty gli

Post by zac352 »

TechnoCat wrote:Try this instead

Code: Select all

resp = love.thread.newThread("responder", "irc_bot/responder.lua")

Code: Select all

love.thread.newThread(name, file)
Oh. *wallface*

Love should really give a better error for that. :roll:
Hello, I am not dead.
User avatar
thelinx
The Strongest
Posts: 852
Joined: Fri Sep 26, 2008 3:56 pm
Location: Sweden

Re: Uh... I think I have a faulty love, or found a nasty gli

Post by thelinx »

It tried to make a thread of a file with the filename you set to be the contents of the actual fault.

It's not LÖVE's fault you didn't read the love.thread.newThread docs. A "file not found" message is good enough.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Uh... I think I have a faulty love, or found a nasty gli

Post by bartbes »

I just love the way it said 404.
Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests