Re: [BackupPC-users] Making errors in log stand out
2011-04-06 09:46:07
On 4/6/2011 9:34 AM, Sorin Srbu wrote:
>> -----Original Message-----
>> From: Tyler J. Wagner [mailto:tyler AT tolaris DOT com]
>> Sent: Wednesday, April 06, 2011 3:06 PM
>> To: sorin.srbu AT orgfarm.uu DOT se; General list for user discussion,
>> questions
>> and support
>> Subject: Re: [BackupPC-users] Making errors in log stand out
>>
>>> ./usr/lib/BackupPC/Lang/en.pm:$Lang{Reason_backup_failed} ="backup
>>> failed";
>> See if this works. In /usr/lib/BackupPC/Lang/en.pm:
>>
>> $Lang{Reason_backup_failed} = "backup <font color="red">failed</font>";
>>
>> Do the same for any other backup errors in the lang file. This is a hack
>> (this doesn't belong in the Lang data), but it's a fast way to do what
>> you want.
> Not quite there yet.
>
> BackupPC::Lib->new failed
> 2011-04-06 15:31:30 User root requested backup of machnnn.x.y.z
> (machnnn.x.y.z)
> Bareword found where operator expected at /usr/lib/BackupPC/Lang/en.pm line
> 1238, near ""<font color="red"
> (Missing operator before red?)
> String found where operator expected at /usr/lib/BackupPC/Lang/en.pm line
> 1238, near "red">backup failed</font>""
> Couldn't execute language file /usr/lib/BackupPC/Lang/en.pm: syntax error at
> /usr/lib/BackupPC/Lang/en.pm line 1238, near ""<font color="red"
> BackupPC::Lib->new failed
>
> Seems like BPC doesn't quite like it. If this doesn't belong in
> usr/lib/BackupPC/Lang/en.pm, where else would it belong better?
I think you just need to escape the quotes. Try this:
$Lang{Reason_backup_failed} = "backup <font color=\"red\">failed</font>";
--
Bowie
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
|
|
|