diff --git a/.bashrc.d/terraform b/.bashrc.d/terraform
index 462ee86b1150ca4f25b9021361d0fe2a8aca31dd..f61e887b008c5640ed7200cfcf398ea164be720e 100644
--- a/.bashrc.d/terraform
+++ b/.bashrc.d/terraform
@@ -16,7 +16,7 @@ tf-next () {
     if [ -z "${next}" ]
     then
         red "Last workspace."
-        return
+        return 1
     fi
     tf workspace select "$next"
 }