{
@@ -56,6 +55,11 @@ export class Geocode {
return null;
}
+ if (response.status !== 200) {
+ this.log.warn(`Invalid response from API [${response.status}]`);
+ return null;
+ }
+
try {
json = await response.json();
} catch (err) {
diff --git a/views/index.hbs b/views/index.hbs
index 2721c14..acebe0f 100644
--- a/views/index.hbs
+++ b/views/index.hbs
@@ -1,3 +1,3 @@
{{> head}}
- {{{body}}}
+ {{> body }}
{{> foot}}
\ No newline at end of file
diff --git a/views/partials/body.hbs b/views/partials/body.hbs
new file mode 100644
index 0000000..f7dd77c
--- /dev/null
+++ b/views/partials/body.hbs
@@ -0,0 +1,7 @@
+
+{{#each photos}}
+
+ {{> photo this}}
+
+{{/each}}
+
\ No newline at end of file
diff --git a/views/partials/foot.hbs b/views/partials/foot.hbs
index b9de0a2..cb373b8 100644
--- a/views/partials/foot.hbs
+++ b/views/partials/foot.hbs
@@ -1,5 +1,5 @@
-
-
+
+ © {{year}} {{artist}}
+