typesafehub / angular-seed-play

initial
Other
118 stars 43 forks source link

Set link to favicon to get rid of `RuntimeException: no resource` #22

Closed magro closed 10 years ago

magro commented 10 years ago

Without this change the console shows this error:

[debug] application - Unforseen error for favicon.ico at /public
java.lang.RuntimeException: no resource
        at controllers.Assets$$anonfun$controllers$Assets$$assetInfoFromResource$1$$anonfun$10.apply(Assets.scala:214) ~[play_2.10-2.3.0.jar:2.3.0]
        at controllers.Assets$$anonfun$controllers$Assets$$assetInfoFromResource$1$$anonfun$10.apply(Assets.scala:214) ~[play_2.10-2.3.0.jar:2.3.0]
        at scala.Option.getOrElse(Option.scala:120) [scala-library.jar:na]
        at controllers.Assets$$anonfun$controllers$Assets$$assetInfoFromResource$1.apply(Assets.scala:214) ~[play_2.10-2.3.0.jar:2.3.0]
        at controllers.Assets$$anonfun$controllers$Assets$$assetInfoFromResource$1.apply(Assets.scala:213) ~[play_2.10-2.3.0.jar:2.3.0]
huntc commented 10 years ago

That is just a debug message of course...

magro commented 10 years ago

That's right, but it's still annoying. If you don't want to merge it you should remove public/img/favicon.png :-)

huntc commented 10 years ago

No probs - but may be this is something we want to solve for Play in general.