Skip to content

Commit

Permalink
Updating readme
Browse files Browse the repository at this point in the history
Signed-off-by: Raj Babu Das <[email protected]>
  • Loading branch information
imrajdas committed Aug 26, 2023
1 parent ebc76cf commit ab5d433
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
main
scripts/*
scripts/*
custom-platforms-0.1.0
2 changes: 2 additions & 0 deletions pkg/diffr/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,11 @@ func handler(w http.ResponseWriter, r *http.Request) {
// Execute the templates with the provided data
err := tmpl.Execute(w, data)
if err != nil {
w.WriteHeader(http.StatusInternalServerError)
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
w.WriteHeader(http.StatusOK)
}()

wg.Wait()
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

custom_package="diffr"
custom_package=$1
if [[ -z "$custom_package" ]]; then
echo "Usage: $0 diffr [dir1/file1 dir2/file2]]"
exit 1
Expand Down

0 comments on commit ab5d433

Please sign in to comment.