Skip to content

Commit c00740f

Browse files
committed
Improve the error message for a bad DB value in bin/sandbox
1 parent 70ec57b commit c00740f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • lib/solidus_dev_support/templates/extension/bin

lib/solidus_dev_support/templates/extension/bin/sandbox.tt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,16 @@ postgres|postgresql)
99
mysql)
1010
RAILSDB="mysql"
1111
;;
12-
sqlite)
12+
sqlite3|sqlite)
1313
RAILSDB="sqlite3"
1414
;;
1515
'')
1616
echo "~~> Use 'export DB=[postgres|mysql|sqlite]' to control the DB adapter"
1717
RAILSDB="sqlite3"
1818
;;
1919
*)
20-
echo "Invalid DB specified: $DB"
20+
echo "Invalid value specified for the Solidus sandbox: DB=\"$DB\"."
21+
echo "Please use 'postgres', 'mysql', or 'sqlite' instead."
2122
exit 1
2223
;;
2324
esac

0 commit comments

Comments
 (0)